diff options
| author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-01-07 06:57:47 -0500 |
|---|---|---|
| committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-01-07 07:46:48 -0500 |
| commit | 6c28705418de012216161b14a2ff1dda3da3d786 (patch) | |
| tree | f9765f8ef8dc55a61ba354fb2516a4d172ef4591 | |
| parent | 4f3be1b5a98587b86cae05aa5d129dd0b3fff466 (diff) | |
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>
| -rw-r--r-- | fs/reiserfs/xattr_acl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
| 452 | return 0; | 452 | return 0; |
| 453 | } | 453 | } |
| 454 | 454 | ||
| 455 | reiserfs_write_unlock(inode->i_sb); | ||
| 455 | acl = reiserfs_get_acl(inode, ACL_TYPE_ACCESS); | 456 | acl = reiserfs_get_acl(inode, ACL_TYPE_ACCESS); |
| 457 | reiserfs_write_lock(inode->i_sb); | ||
| 456 | if (!acl) | 458 | if (!acl) |
| 457 | return 0; | 459 | return 0; |
| 458 | if (IS_ERR(acl)) | 460 | if (IS_ERR(acl)) |
