projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2198a6b
)
io_uring: set sqe iopriority, if prio/prioclass is set
author
Jens Axboe
<axboe@kernel.dk>
Thu, 9 Jan 2020 21:58:51 +0000
(14:58 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 9 Jan 2020 21:58:51 +0000
(14:58 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/io_uring.c
b/engines/io_uring.c
index 7c19294be7582cf50fac87d67e0338aa196a5849..4f6a96782ad85b354fe42c10e2c28069f83f3001 100644
(file)
--- a/
engines/io_uring.c
+++ b/
engines/io_uring.c
@@
-206,6
+206,10
@@
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 (fio_option_is_set(&td->o, ioprio_class))
+ sqe->ioprio = td->o.ioprio_class << 13;
+ if (fio_option_is_set(&td->o, ioprio))
+ sqe->ioprio |= td->o.ioprio;
sqe->off = io_u->offset;
} else if (ddir_sync(io_u->ddir)) {
if (io_u->ddir == DDIR_SYNC_FILE_RANGE) {