See commit
4a87b5840d35 ("io_uring: add support for RWF_UNCACHED")
for details on this feature.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
void *pad;
unsigned int hipri;
unsigned int hipri_percentage;
void *pad;
unsigned int hipri;
unsigned int hipri_percentage;
};
static struct fio_option options[] = {
};
static struct fio_option options[] = {
.category = FIO_OPT_C_ENGINE,
.group = FIO_OPT_G_INVALID,
},
.category = FIO_OPT_C_ENGINE,
.group = FIO_OPT_G_INVALID,
},
+ {
+ .name = "uncached",
+ .lname = "Uncached",
+ .type = FIO_OPT_INT,
+ .off1 = offsetof(struct psyncv2_options, uncached),
+ .help = "Use RWF_UNCACHED for buffered read/writes",
+ .category = FIO_OPT_C_ENGINE,
+ .group = FIO_OPT_G_INVALID,
+ },
if (o->hipri &&
(rand_between(&sd->rand_state, 1, 100) <= o->hipri_percentage))
flags |= RWF_HIPRI;
if (o->hipri &&
(rand_between(&sd->rand_state, 1, 100) <= o->hipri_percentage))
flags |= RWF_HIPRI;
+ if (!td->o.odirect && o->uncached)
+ flags |= RWF_UNCACHED;
iov->iov_base = io_u->xfer_buf;
iov->iov_len = io_u->xfer_buflen;
iov->iov_base = io_u->xfer_buf;
iov->iov_len = io_u->xfer_buflen;