OSDN Git Service

ext4: don't remount read-only with errors=continue on reboot
authorJan Kara <jack@suse.cz>
Fri, 27 Nov 2020 11:33:54 +0000 (12:33 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Dec 2020 18:30:55 +0000 (13:30 -0500)
commitb08070eca9e247f60ab39d79b2c25d274750441f
tree2eb9f983364b0c71b29d8cd1778f057fb8ce58e3
parent46e294efc355c48d1dd4d58501aa56dac461792a
ext4: don't remount read-only with errors=continue on reboot

ext4_handle_error() with errors=continue mount option can accidentally
remount the filesystem read-only when the system is rebooting. Fix that.

Fixes: 1dc1097ff60e ("ext4: avoid panic during forced reboot")
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20201127113405.26867-2-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c