Skip to content

fstests: test that RWF_DONTCACHE I/O drops its folios

Tal Zussman fstests linux-ext4 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20261015-dontcache-test-be6094aa3f20

Versions newest first

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- generic/810: fold the writeback wait into report_cached() with an
optional delay, and give the plain cases a short delay, per Brian
Foster.
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3common/rc: probe pread options with a real readcommon/rc+5 -00 replies
2/3common/rc: pass -V 1 when probing pwrite and pread -Ucommon/rc+11 -21 reply
3/3generic/810: check that RWF_DONTCACHE I/O drops its foliostests/generic/810 tests/generic/810.out+88 -03 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchBrian FosterChristoph Hellwig
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] fstests: test that RWF_DONTCACHE I/O drops its folios

Add a test for RWF_DONTCACHE, as suggested by Christoph. [1]

generic/810 writes and reads a 1M file with and without RWF_DONTCACHE and checks with mincore how much of it is still cached after each step. On ext4 without the fix, the dontcache overwrite leaves the whole file cached.

The first two patches make _require_xfs_io_command able to probe "pwrite -U" and "pread -U".

[1] https://lore.kernel.org/linux-ext4/20261012-ext4-dontcache-complete-in-task-v1-1-6ac801557041@columbia.edu/

---
Changes in v2:
- generic/810: fold the writeback wait into report_cached() with an
optional delay, and give the plain cases a short delay, per Brian
Foster.
- Link to v1: https://patch.msgid.link/[email protected]

---
Tal Zussman (3):
common/rc: probe pread options with a real read common/rc: pass -V 1 when probing pwrite and pread -U generic/810: check that RWF_DONTCACHE I/O drops its folios

 common/rc             | 14 ++++++++++
 tests/generic/810     | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/810.out | 11 ++++++++
 3 files changed, 102 insertions(+)

---
base-commit: d07dca72d2455f4ba8c660ad4c008541ccccb707
change-id: 20261015-dontcache-test-be6094aa3f20

Best regards,

Signature · 1 line
Tal Zussman <[email protected]>