eCryptfs: Lock lower directory inode mutex during lookup
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 22 Apr 2009 21:27:12 +0000 (16:27 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 22 Apr 2009 21:27:12 +0000 (16:27 -0500)
commitca8e34f2b05a8289b47907b083dc01dd654ecbde
treeeeedcd559c8add0b8ebc87489f8daf78258d59a1
parente77cc8d243f9f1e1d3f0799e23cc14e837ccc8c6
eCryptfs: Lock lower directory inode mutex during lookup

This patch locks the lower directory inode's i_mutex before calling
lookup_one_len() to find the appropriate dentry in the lower filesystem.
This bug was found thanks to the warning set in commit 2f9092e1.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/inode.c