Please sign in to comment.
fs/super.c: sync ro remount after blocking writers
Move sync_filesystem() after sb_prepare_remount_readonly(). If writers sneak in anywhere from sync_filesystem() to sb_prepare_remount_readonly() it can cause inodes to be dirtied and writeback to occur well after sys_mount() has completely successfully. This was spotted by corrupted ubifs filesystems on reboot, but appears that it can cause issues with any filesystem using writeback. Cc: Artem Bityutskiy <email@example.com> Cc: Christoph Hellwig <firstname.lastname@example.org> Cc: Alexander Viro <email@example.com> CC: Richard Weinberger <firstname.lastname@example.org> Co-authored-by: Richard Weinberger <email@example.com> Signed-off-by: Andrew Ruder <firstname.lastname@example.org> Signed-off-by: Al Viro <email@example.com>
- Loading branch information...