Re: [PATCH 0/2] block: Fix stale page cache of discard or zero out ioctl
From: Shinichiro Kawasaki <hidden>
Date: 2021-11-10 01:13:10
On Nov 09, 2021 / 07:33, Jens Axboe wrote:
On 11/9/21 3:47 AM, Shin'ichiro Kawasaki wrote:quoted
When BLKDISCARD or BLKZEROOUT ioctl race with data read, stale page cache is left. This patch series have two fox patches for the stale page cache. Same fix approach was used as blkdev_fallocate() [1]. [1] https://marc.info/?l=linux-block&m=163236463716836 Shin'ichiro Kawasaki (2): block: Hold invalidate_lock in BLKDISCARD ioctl block: Hold invalidate_lock in BLKZEROOUT ioctl block/ioctl.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-)Do you want to do a v2 with BLKRESETZONE added as well? I can do these separately. but a bit awkward right now as my main block 5.16 branch doesn't yet have the bdev size changes. I'll queue this up post flushing out the remaining block bits for 5.16, if v2 with BLKRESETZONE happens before that I'll just use that one.
Let's separate the BLKRESETZONE patch. I'll need some more time to prepare it. I saw the BLKDISCARD and BLKZEROOUT patches queued in the block-5.16 branch. Thanks! -- Best Regards, Shin'ichiro Kawasaki