reiserfs: Don't call reiserfs_get_acl() with the reiserfs lock
[pandora-kernel.git] / fs / reiserfs / xattr_acl.c
index 35d6e67..f559c9e 100644 (file)
@@ -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))