diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-06-10 10:09:32 +1000 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-06-14 11:31:51 -0400 |
commit | 13b987ea275840d74d9df9a44326632fab1894da (patch) | |
tree | 8d64f6ad319fe214e7ead9a0336a1b35207a4387 /fs/ufs/inode.c | |
parent | 3f4a9494104cbadfa05cb2da9ca04b205712360f (diff) | |
download | op-kernel-dev-13b987ea275840d74d9df9a44326632fab1894da.zip op-kernel-dev-13b987ea275840d74d9df9a44326632fab1894da.tar.gz |
fs/ufs: revert "ufs: fix deadlocks introduced by sb mutex merge"
This reverts commit 9ef7db7f38d0 ("ufs: fix deadlocks introduced by sb
mutex merge") That patch tried to solve commit 0244756edc4b98c ("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>
Diffstat (limited to 'fs/ufs/inode.c')
-rw-r--r-- | fs/ufs/inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index be7d42c..2d93ab0 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -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); + } } |