ext4: replace read-only check for shutdown check in mmp code
authorJan Kara <jack@suse.cz>
Fri, 16 Jun 2023 16:50:57 +0000 (18:50 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Jul 2023 22:37:53 +0000 (18:37 -0400)
commit1e1566b9c85fbd6150657ea17f50fd42b9166d31
tree8cb6bccc5fb62133e5c8f4ba97f8fb6a79f8c8d4
parent889860e452d7436ca72018b8a03cbd89c38d6384
ext4: replace read-only check for shutdown check in mmp code

The multi-mount protection kthread checks for read-only filesystem and
aborts in that case. The remount code actually handles stopping of the
kthread on remount so the only purpose of the check is in case of
emergency remount read-only. Replace the check for read-only filesystem
with a check for shutdown filesystem as running MMP on such is risky
anyway and it makes ordering of things during remount simpler.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230616165109.21695-11-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mmp.c