Re-introduce RWF_DONTCACHE
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Feb 2025 20:07:41 +0000 (13:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Feb 2025 20:07:41 +0000 (13:07 -0700)
commit43c67b9f3a8808274bc1e0a3b7b70c56bb8a007f
tree4bf0e68f9ba94a729242540f4fabcf0a4235bf51
parenteaa9e88786bddd751307a19b42ad725dfc19a588
Re-introduce RWF_DONTCACHE

This used to be called RWF_UNCACHED, and it never made it upstream. But
as of the 6.14 kernel, RWF_DONTCACHE exists, and provides the same
guarantees that the older RWF_UNCACHED did - it's applied to buffered
IO, and any page cache instantiated for this read or write will be
dropped on IO completion. Any data already in cache will remain in cache
and will not cause IO to be issued.

This adds support for the io_uring and sync IO engines.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
engines/sync.c
os/os-linux.h
tools/fiograph/fiograph.conf