aboutsummaryrefslogtreecommitdiff
path: root/samples/ftrace/sample-trace-array.h
diff options
context:
space:
mode:
authorGravatar Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> 2021-11-09 19:47:22 +0900
committerGravatar Jens Axboe <axboe@kernel.dk> 2021-11-09 12:41:12 -0700
commit7607c44c157d343223510c8ffdf7206fdd2a6213 (patch)
tree5d583e2d24b462f62bad819bd52c45f50d6d16d9 /samples/ftrace/sample-trace-array.h
parentMerge tag 'for-5.16/drivers-2021-11-09' of git://git.kernel.dk/linux-block (diff)
downloadlinux-7607c44c157d343223510c8ffdf7206fdd2a6213.tar.gz
linux-7607c44c157d343223510c8ffdf7206fdd2a6213.tar.bz2
linux-7607c44c157d343223510c8ffdf7206fdd2a6213.zip
block: Hold invalidate_lock in BLKDISCARD ioctl
When BLKDISCARD 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 repeated hundreds of times. This patch can be applied back to the stable kernel version v5.15.y with slight patch edit. Rework is required for older stable kernels. Fixes: 351499a172c0 ("block: Invalidate cache on discard v2") Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Cc: stable@vger.kernel.org # v5.15 Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20211109104723.835533-2-shinichiro.kawasaki@wdc.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples/ftrace/sample-trace-array.h')
0 files changed, 0 insertions, 0 deletions