From: Frederic Weisbecker Date: Thu, 7 Jan 2010 11:57:47 +0000 (+0100) Subject: reiserfs: Don't call reiserfs_get_acl() with the reiserfs lock X-Git-Tag: MMI-PSA29.97-13-9~25241^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c28705418de012216161b14a2ff1dda3da3d786;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: Christian Kujau Cc: Alexander Beregalov Cc: Chris Mason Cc: Ingo Molnar --- diff --git a/fs/reiserfs/xattr_acl.c b/fs/reiserfs/xattr_acl.c index 35d6e672a279..f559c9e1efc8 100644 --- a/fs/reiserfs/xattr_acl.c +++ b/fs/reiserfs/xattr_acl.c @@ -452,7 +452,9 @@ int reiserfs_acl_chmod(struct inode *inode) return 0; } + reiserfs_write_unlock(inode->i_sb); acl = reiserfs_get_acl(inode, ACL_TYPE_ACCESS); + reiserfs_write_lock(inode->i_sb); if (!acl) return 0; if (IS_ERR(acl))