reiserfs: Fix lock ordering during remount
authorJan Kara <jack@suse.cz>
Tue, 13 Nov 2012 13:55:52 +0000 (14:55 +0100)
committerJan Kara <jack@suse.cz>
Mon, 19 Nov 2012 20:34:32 +0000 (21:34 +0100)
commit3bb3e1fc47aca554e7e2cc4deeddc24750987ac2
tree2460e3e16353e865b9e322981760d2b220bcf69c
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
reiserfs: Fix lock ordering during remount

When remounting reiserfs dquot_suspend() or dquot_resume() can be called.
These functions take dqonoff_mutex which ranks above write lock so we have
to drop it before calling into quota code.

CC: stable@vger.kernel.org # >= 3.0
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/super.c