]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] Fix reiserfs deadlock
authorJan Kara <jack@suse.cz>
Sun, 23 Apr 2006 17:10:44 +0000 (17:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 1 May 2006 19:03:43 +0000 (12:03 -0700)
commit89d4fdf423aa5d02e0d5f79ceba238a35bf23aff
tree1833d69afaf69f5417bb12edb2bff67bc8be473b
parent692c0509fd0719406f8f781d9a9f2e19aa6b7c0a
[PATCH] Fix reiserfs deadlock

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: Jan Kara <jack@suse.cz>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/reiserfs/xattr_acl.c