]> www.infradead.org Git - users/hch/blktests.git/commit
zbd/008: check no stale page cache after BLKRESETZONE ioctl
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Wed, 30 Mar 2022 01:32:10 +0000 (10:32 +0900)
committerOmar Sandoval <osandov@fb.com>
Mon, 9 May 2022 19:11:16 +0000 (12:11 -0700)
commita2737bbd421af97420115e2cc0d4d915ce30fe50
tree43ac71f765157645aeac9b2e758767a98e569680
parentcb3e3432c9bb357ae5753f9ad70ed29eb49dd8e0
zbd/008: check no stale page cache after BLKRESETZONE ioctl

Run two processes which repeat data read and BLKRESETZONE ioctl, and
check that the race does not leave stale page cache. This allows to
catch the bug fixed with the commit e5113505904e ("block: Discard page
cache of # zone reset target range").

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/zbd/008 [new file with mode: 0755]
tests/zbd/008.out [new file with mode: 0644]