]> git.karo-electronics.de Git - karo-tx-linux.git/commit
reiserfs: don't acquire lock recursively in reiserfs_acl_chmod
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 2 Dec 2010 22:31:16 +0000 (14:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:41 +0000 (12:43 -0700)
commitbc62f2056eefd5996afb73c4afe59d79da12c484
tree65a48b28b186a6ec1be3f7aebc576be82a72fb62
parentc90039d59a6a4c8e675f44974a8d4affd4a55d8c
reiserfs: don't acquire lock recursively in reiserfs_acl_chmod

commit 238af8751f64a75f8b638193353b1c31ea32e738 upstream.

reiserfs_acl_chmod() can be called by reiserfs_set_attr() and then take
the reiserfs lock a second time.  Thereafter it may call journal_begin()
that definitely requires the lock not to be nested in order to release
it before taking the journal mutex because the reiserfs lock depends on
the journal mutex already.

So, aviod nesting the lock in reiserfs_acl_chmod().

Reported-by: Pawel Zawora <pzawora@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Tested-by: Pawel Zawora <pzawora@gmail.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/reiserfs/xattr_acl.c