summaryrefslogtreecommitdiff
path: root/engines/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sync.c')
-rw-r--r--engines/sync.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/sync.c b/engines/sync.c
index 65fd210c..94e3f855 100644
--- a/engines/sync.c
+++ b/engines/sync.c
@@ -40,6 +40,7 @@ struct psyncv2_options {
unsigned int hipri;
unsigned int hipri_percentage;
unsigned int uncached;
+ unsigned int noaccess;
};
static struct fio_option options[] = {
@@ -74,6 +75,15 @@ static struct fio_option options[] = {
.group = FIO_OPT_G_INVALID,
},
{
+ .name = "noaccess",
+ .lname = "noaccess",
+ .type = FIO_OPT_INT,
+ .off1 = offsetof(struct psyncv2_options, noaccess),
+ .help = "Use RWF_NOACCESS for buffered reads",
+ .category = FIO_OPT_C_ENGINE,
+ .group = FIO_OPT_G_INVALID,
+ },
+ {
.name = NULL,
},
};
@@ -164,6 +174,8 @@ static enum fio_q_status fio_pvsyncio2_queue(struct thread_data *td,
flags |= RWF_HIPRI;
if (!td->o.odirect && o->uncached)
flags |= RWF_UNCACHED;
+ if (!td->o.odirect && o->noaccess)
+ flags |= 0x80;
iov->iov_base = io_u->xfer_buf;
iov->iov_len = io_u->xfer_buflen;