From: Jeff Mahoney Date: Wed, 27 Jul 2005 18:43:38 +0000 (-0700) Subject: [PATCH] reiserfs: fix deadlock in inode creation failure path w/ default ACL X-Git-Tag: v2.6.13-rc4~25^2~154 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3bb8afd965159f155d4f629cbea158cbcc69275;p=pandora-kernel.git [PATCH] reiserfs: fix deadlock in inode creation failure path w/ default ACL reiserfs_new_inode() can call iput() with the xattr lock held. This will cause a deadlock to occur when reiserfs_delete_xattrs() is called to clean up. The following patch releases the lock and reacquires it after the iput. This is safe because interaction with xattrs is complete, and the relock is just to balance out the release in the caller. The locking needs some reworking to be more sane, but that's more intrusive and I was just looking to fix this bug. Signed-off-by: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed