reiserfs: Don't call reiserfs_get_acl() with the reiserfs lock
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 7 Jan 2010 11:57:47 +0000 (12:57 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 7 Jan 2010 12:46:48 +0000 (13:46 +0100)
commit6c28705418de012216161b14a2ff1dda3da3d786
treef9765f8ef8dc55a61ba354fb2516a4d172ef4591
parent4f3be1b5a98587b86cae05aa5d129dd0b3fff466
reiserfs: Don't call reiserfs_get_acl() with the reiserfs lock

reiserfs_get_acl is usually not called under the reiserfs lock,
as it doesn't need it. But it happens when it is called by
reiserfs_acl_chmod(), which creates a dependency inversion against
the private xattr inodes mutexes for the given inode.

We need to call it without the reiserfs lock, especially since
it's unnecessary.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Christian Kujau <lists@nerdbynature.de>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
fs/reiserfs/xattr_acl.c