• Jan Kara's avatar
    [PATCH] Fix reiserfs deadlock · b9251b82
    Jan Kara authored
    reiserfs_cache_default_acl() should return whether we successfully found
    the acl or not.  We have to return correct value even if reiserfs_get_acl()
    returns error code and not just 0.  Otherwise callers such as
    reiserfs_mkdir() can unnecessarily lock the xattrs and later functions such
    as reiserfs_new_inode() fail to notice that we have already taken the lock
    and try to take it again with obvious consequences.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Cc: <reiserfs-dev@namesys.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    b9251b82
xattr_acl.c 13.1 KB