linux-stable/include
Konstantin Khlebnikov 410fb31d89 ovl: skip overlayfs superblocks at global sync
[ Upstream commit 32b1924b21 ]

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: b836c4d29f ("ima: detect changes to the backing overlay file")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-08 08:43:26 +01:00
..
acpi ACPI: CPPC: Do not prevent CPPC from working in the future 2022-08-25 11:15:30 +02:00
asm-generic word-at-a-time: use the same return type for has_zero regardless of endianness 2023-08-11 11:45:36 +02:00
clocksource
crypto crypto: drbg - make reseeding from get_random_bytes() synchronous 2022-06-25 11:49:13 +02:00
drm drm/mipi-dsi: Fix byte order of 16-bit DCS set/get brightness 2023-03-11 16:31:40 +01:00
dt-bindings
keys
kvm
linux ovl: skip overlayfs superblocks at global sync 2023-12-08 08:43:26 +01:00
math-emu
media media: v4l2-mem2mem: add lock to protect parameter num_rdy 2023-08-30 16:31:43 +02:00
memory
misc
net net: annotate data-races around sk->sk_dst_pending_confirm 2023-11-28 16:46:31 +00:00
pcmcia
ras
rdma RDMA/netlink: Add __maybe_unused to static inline in C file 2021-11-26 11:36:24 +01:00
scsi scsi: core: Use 32-bit hostnum in scsi_host_lookup() 2023-09-23 10:48:08 +02:00
soc
sound ALSA: core: Add async signal helpers 2022-08-25 11:15:46 +02:00
target scsi: target: Fix ordered tag handling 2021-11-26 11:36:20 +01:00
trace nohz: Add TICK_DEP_BIT_RCU 2023-05-17 11:13:22 +02:00
uapi bpf: Clarify error expectations from bpf_clone_redirect 2023-10-10 21:44:58 +02:00
video video: of_display_timing.h: include errno.h 2022-07-12 16:29:01 +02:00
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-11 10:15:13 +01:00