aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorShin'ichiro Kawasaki <[email protected]>2021-11-09 19:47:23 +0900
committerJens Axboe <[email protected]>2021-11-09 12:41:12 -0700
commit35e4c6c1a2fc2eb11b9306e95cda1fa06a511948 (patch)
treec1eccdc97dcae1924e073b8f83885e5f7e166f47 /net/lapb/lapb_timer.c
parent7607c44c157d343223510c8ffdf7206fdd2a6213 (diff)
block: Hold invalidate_lock in BLKZEROOUT ioctl
When BLKZEROOUT ioctl and data read race, the data read leaves stale page cache. To avoid the stale page cache, hold invalidate_lock of the block device file mapping. The stale page cache is observed when blktests test case block/009 is modified to call "blkdiscard -z" command and repeated hundreds of times. This patch can be applied back to the stable kernel version v5.15.y. Rework is required for older stable kernels. Fixes: 22dd6d356628 ("block: invalidate the page cache when issuing BLKZEROOUT") Signed-off-by: Shin'ichiro Kawasaki <[email protected]> Cc: [email protected] # v5.15 Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions