projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
io_uring: fix misbehaving cmdprio_percentage option
[fio.git]
/
engines
/
io_uring.c
diff --git
a/engines/io_uring.c
b/engines/io_uring.c
index 269e501f5dd0007c9566ee71bf0bf27b66e80359..600fba66f6f0a9e97301bb94851c391b7bb823c5 100644
(file)
--- a/
engines/io_uring.c
+++ b/
engines/io_uring.c
@@
-384,6
+384,8
@@
static void fio_ioring_prio_prep(struct thread_data *td, struct io_u *io_u)
if (rand_between(&td->prio_state, 0, 99) < o->cmdprio_percentage) {
ld->sqes[io_u->index].ioprio = IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT;
io_u->flags |= IO_U_F_PRIORITY;
+ } else {
+ ld->sqes[io_u->index].ioprio = 0;
}
return;
}