ovl: skip overlayfs superblocks at global sync
[ Upstream commit 32b1924b ] 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> Stable-dep-of: b836c4d2 ("ima: detect changes to the backing overlay file") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment