fs/ufs: restore s_lock mutex
commitcdd9eefdf905e92e7fc6cc393314efe68dc6ff66
authorFabian Frederick <fabf@skynet.be>
Wed, 10 Jun 2015 00:09:32 +0000 (10 10:09 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Jun 2015 06:07:38 +0000 (16 02:07 -0400)
tree21a33cf43006f039bae8896de1457b72652d7c6a
parent13b987ea275840d74d9df9a44326632fab1894da
fs/ufs: restore s_lock mutex

Commit 0244756edc4b98c ("ufs: sb mutex merge + mutex_destroy") generated
deadlocks in read/write mode on mkdir.

This patch partially reverts it keeping fixes by Andrew Morton and
mutex_destroy()

[AV: fixed a missing bit in ufs_remount()]

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reported-by: Ian Campbell <ian.campbell@citrix.com>
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>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/balloc.c
fs/ufs/ialloc.c
fs/ufs/super.c
fs/ufs/ufs.h