On Thu, 11 Nov 2021 17:52:38 +0900, Shin'ichiro Kawasaki wrote: > When BLKRESETZONE ioctl and data read race, the data read leaves stale > page cache. The commit e5113505904e ("block: Discard page cache of zone > reset target range") added page cache truncation to avoid stale page > cache after the ioctl. However, the stale page cache still can be read > during the reset zone operation for the ioctl. To avoid the stale page > cache completely, hold invalidate_lock of the block device file mapping. > > [...] Applied, thanks! [1/1] block: Hold invalidate_lock in BLKRESETZONE ioctl commit: 86399ea071099ec8ee0a83ac9ad67f7df96a50ad Best regards, -- Jens Axboe