summaryrefslogtreecommitdiff
path: root/engines/io_uring.c
diff options
context:
space:
mode:
Diffstat (limited to 'engines/io_uring.c')
-rw-r--r--engines/io_uring.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/io_uring.c b/engines/io_uring.c
index 9ba126d8..f5d302d2 100644
--- a/engines/io_uring.c
+++ b/engines/io_uring.c
@@ -76,6 +76,7 @@ struct ioring_options {
unsigned int sqpoll_set;
unsigned int sqpoll_cpu;
unsigned int uncached;
+ unsigned int noaccess;
};
static int fio_ioring_sqpoll_cb(void *data, unsigned long long *val)
@@ -143,6 +144,15 @@ static struct fio_option options[] = {
.group = FIO_OPT_G_IOURING,
},
{
+ .name = "noaccess",
+ .lname = "No access",
+ .type = FIO_OPT_INT,
+ .off1 = offsetof(struct ioring_options, noaccess),
+ .help = "Use RWF_NOACCESS for buffered reads",
+ .category = FIO_OPT_C_ENGINE,
+ .group = FIO_OPT_G_IOURING,
+ },
+ {
.name = NULL,
},
};
@@ -192,6 +202,8 @@ static int fio_ioring_prep(struct thread_data *td, struct io_u *io_u)
}
if (!td->o.odirect && o->uncached)
sqe->rw_flags = RWF_UNCACHED;
+ if (!td->o.odirect && o->noaccess)
+ sqe->rw_flags = 0x80;
sqe->off = io_u->offset;
} else if (ddir_sync(io_u->ddir)) {
if (io_u->ddir == DDIR_SYNC_FILE_RANGE) {