WSL2-Linux-Kernel/fs/overlayfs
Konstantin Khlebnikov 32b1924b21 ovl: skip overlayfs superblocks at global sync
Stacked filesystems like overlayfs has no own writeback, but they have to
forward syncfs() requests to backend for keeping data integrity.

During global sync() each overlayfs instance calls method ->sync_fs() for
backend although it itself is in global list of superblocks too.  As a
result one syscall sync() could write one superblock several times and send
multiple disk barriers.

This patch adds flag SB_I_SKIP_SYNC into sb->sb_iflags to avoid that.

Reported-by: Dmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-05-13 11:11:24 +02:00
..
Kconfig ovl: fix some xino configurations 2020-03-13 15:53:06 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
copy_up.c ovl: prepare to copy up without workdir 2020-05-13 11:11:24 +02:00
dir.c ovl: fix WARN_ON nlink drop to zero 2020-03-27 16:51:02 +01:00
export.c ovl: potential crash in ovl_fid_to_fh() 2020-05-13 11:10:57 +02:00
file.c ovl: fix lockdep warning for async write 2020-03-13 15:53:06 +01:00
inode.c ovl: clear ATTR_OPEN from attr->ia_valid 2020-04-30 11:52:07 +02:00
namei.c ovl: cleanup non-empty directories in ovl_indexdir_cleanup() 2020-05-13 11:11:24 +02:00
overlayfs.h ovl: cleanup non-empty directories in ovl_indexdir_cleanup() 2020-05-13 11:11:24 +02:00
ovl_entry.h ovl: use a private non-persistent ino pool 2020-03-27 16:51:02 +01:00
readdir.c ovl: cleanup non-empty directories in ovl_indexdir_cleanup() 2020-05-13 11:11:24 +02:00
super.c ovl: skip overlayfs superblocks at global sync 2020-05-13 11:11:24 +02:00
util.c ovl: allow remote upper 2020-03-17 15:04:22 +01:00