]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: Expand i_mutex to enclose lookup_one_len
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 May 2009 16:11:12 +0000 (12:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2009 14:49:38 +0000 (10:49 -0400)
commit9fdad5fcc1bedcb77515062ef925d1dc13d984e5
tree3c0d0bfabc7545963c0d618afbe4bd483b7c6166
parentfc1621ac17f8935e851408ad69f6ab3193758285
reiserfs: Expand i_mutex to enclose lookup_one_len

 2.6.30-rc3 introduced some sanity checks in the VFS code to avoid NFS
 bugs by ensuring that lookup_one_len is always called under i_mutex.

 This patch expands the i_mutex locking to enclose lookup_one_len. This was
 always required, but not not enforced in the reiserfs code since it
 does locking around the xattr interactions with the xattr_sem.

 This is obvious enough, and it survived an overnight 50 thread ACL test.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/xattr.c