summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-06 08:35:28 -0700
committerJens Axboe <axboe@kernel.dk>2019-12-06 08:36:38 -0700
commit4a87b5840d35584fd872571d37c69d7544b1b00f (patch)
treeaefa8c8dd3ebcce8a2c5ed6052f29c325315e732 /os
parentbef74db41fb5a1607fd55cb86544165fc08acac1 (diff)
downloadfio-4a87b5840d35584fd872571d37c69d7544b1b00f.tar.gz
fio-4a87b5840d35584fd872571d37c69d7544b1b00f.tar.bz2
io_uring: add support for RWF_UNCACHED
If this is set, and the kernel supports it, buffered IO will be uncached. This means that reads are dropped from the cache if we are the ones instantiating the pages, and writes are sync and dropped from the page cache on IO completion. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os')
-rw-r--r--os/os-linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/os-linux.h b/os/os-linux.h
index 36339ef3..dbcde242 100644
--- a/os/os-linux.h
+++ b/os/os-linux.h
@@ -326,6 +326,10 @@ static inline int fio_set_sched_idle(void)
#define RWF_SYNC 0x00000004
#endif
+#ifndef RWF_UNCACHED
+#define RWF_UNCACHED 0x00000020
+#endif
+
#ifndef RWF_WRITE_LIFE_SHIFT
#define RWF_WRITE_LIFE_SHIFT 4
#define RWF_WRITE_LIFE_SHORT (1 << RWF_WRITE_LIFE_SHIFT)