summaryrefslogtreecommitdiff
path: root/fs/ufs/ufs.h
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-06-10 10:09:32 +1000
committerSasha Levin <sasha.levin@oracle.com>2015-07-12 12:22:50 -0400
commite47534f4c52e9e18445d24c04b5c3366278589ee (patch)
treeccd16b443b63966f9c8a761c51a709e31564a437 /fs/ufs/ufs.h
parent1834887a14a7abe4ec4d3870df7c2197bbbad480 (diff)
downloadlwn-e47534f4c52e9e18445d24c04b5c3366278589ee.tar.gz
lwn-e47534f4c52e9e18445d24c04b5c3366278589ee.zip
fs/ufs: restore s_lock mutex
[ Upstream commit cdd9eefdf905e92e7fc6cc393314efe68dc6ff66 ] 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> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'fs/ufs/ufs.h')
-rw-r--r--fs/ufs/ufs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ufs/ufs.h b/fs/ufs/ufs.h
index 2a07396d5f9e..cf6368d42d4a 100644
--- a/fs/ufs/ufs.h
+++ b/fs/ufs/ufs.h
@@ -30,6 +30,7 @@ struct ufs_sb_info {
int work_queued; /* non-zero if the delayed work is queued */
struct delayed_work sync_work; /* FS sync delayed work */
spinlock_t work_lock; /* protects sync_work and work_queued */
+ struct mutex s_lock;
};
struct ufs_inode_info {