fs/ufs: revert "ufs: fix deadlocks introduced by sb mutex merge"
This reverts commit9ef7db7f38
("ufs: fix deadlocks introduced by sb mutex merge") That patch tried to solve commit0244756edc
("ufs: sb mutex merge + mutex_destroy") which is itself partially reverted due to multiple deadlocks. Signed-off-by: Fabian Frederick <fabf@skynet.be> Suggested-by: Jan Kara <jack@suse.cz> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Evgeniy Dushistov <dushistov@mail.ru> Cc: Alexey Khoroshilov <khoroshilov@ispras.ru> Cc: Roger Pau Monne <roger.pau@citrix.com> Cc: Ian Jackson <Ian.Jackson@eu.citrix.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:

committed by
Al Viro

parent
3f4a949410
commit
13b987ea27
@@ -902,6 +902,9 @@ void ufs_evict_inode(struct inode * inode)
|
||||
invalidate_inode_buffers(inode);
|
||||
clear_inode(inode);
|
||||
|
||||
if (want_delete)
|
||||
if (want_delete) {
|
||||
lock_ufs(inode->i_sb);
|
||||
ufs_free_inode(inode);
|
||||
unlock_ufs(inode->i_sb);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user