diff options
author | Jun'ichi Nomura <j-nomura@ce.jp.nec.com> | 2010-01-29 09:56:22 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-02-23 07:37:49 -0800 |
commit | e031c71282e8223cc8fc088e4c1bf86900ce9927 (patch) | |
tree | 057e41f70e11a3f9b9687ccdd1b4dbdf6d1eabc0 /mm/oom_kill.c | |
parent | 344542028e96bd2c105ea5da4330af90db94e2b7 (diff) |
freeze_bdev: don't deactivate successfully frozen MS_RDONLY sb
commit 4b06e5b9ad8abb20105b2b25e42c509ebe9b2d76 upstream.
Thanks Thomas and Christoph for testing and review.
I removed 'smp_wmb()' before up_write from the previous patch,
since up_write() should have necessary ordering constraints.
(I.e. the change of s_frozen is visible to others after up_write)
I'm quite sure the change is harmless but if you are uncomfortable
with Tested-by/Reviewed-by on the modified patch, please remove them.
If MS_RDONLY, freeze_bdev should just up_write(s_umount) instead of
deactivate_locked_super().
Also, keep sb->s_frozen consistent so that remount can check the frozen state.
Otherwise a crash reported here can happen:
http://lkml.org/lkml/2010/1/16/37
http://lkml.org/lkml/2010/1/28/53
This patch should be applied for 2.6.32 stable series, too.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Thomas Backlund <tmb@mandriva.org>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions