Jan Kara 72651cac88 fs: Fix imbalance in freeze protection in mark_files_ro()
File descriptors (even those for writing) do not hold freeze protection.
Thus mark_files_ro() must call __mnt_drop_write() to only drop protection
against remount read-only. Calling mnt_drop_write_file() as we do now
results in:

[ BUG: bad unlock balance detected! ]
3.7.0-rc6-00028-g88e75b6 #101 Not tainted
-------------------------------------
kworker/1:2/79 is trying to release lock (sb_writers) at:
[<ffffffff811b33b4>] mnt_drop_write+0x24/0x30
but there are no more locks to release!

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2012-12-20 13:57:36 -05:00
..
2012-12-20 13:57:36 -05:00
2012-11-16 11:20:42 -06:00
2012-10-09 23:33:38 -04:00
2012-10-17 09:18:38 -05:00
2012-12-18 09:36:34 -08:00
2012-10-09 18:35:22 -04:00
2012-10-06 03:05:31 +09:00
2012-07-14 16:34:47 +04:00
2012-10-09 23:33:39 -04:00
2012-12-17 17:15:26 -08:00
2012-10-09 23:33:39 -04:00
2012-10-22 08:50:37 +03:00
2012-10-29 09:00:57 -07:00
2012-12-20 13:57:36 -05:00
2012-10-09 15:52:31 +09:00
2012-11-28 21:49:02 -05:00
2012-12-10 16:30:43 -05:00
2012-10-09 18:35:22 -04:00
2012-12-20 13:57:36 -05:00
2012-09-26 21:08:52 -04:00
2012-12-17 17:15:27 -08:00
2012-10-09 23:33:39 -04:00