ioprio_value(cmdprio->class[ddir], cmdprio->level[ddir]);
if (p && rand_between(&td->prio_state, 0, 99) < p) {
+ io_u->ioprio = cmdprio_value;
io_u->iocb.aio_reqprio = cmdprio_value;
io_u->iocb.u.c.flags |= IOCB_FLAG_IOPRIO;
if (!td->ioprio || cmdprio_value < td->ioprio) {
* The async IO priority is higher (has a lower value)
* than the default context priority.
*/
- io_u->flags |= IO_U_F_PRIORITY;
+ io_u->flags |= IO_U_F_HIGH_PRIO;
}
} else if (td->ioprio && td->ioprio < cmdprio_value) {
/*
* and this priority is higher (has a lower value) than the
* async IO priority.
*/
- io_u->flags |= IO_U_F_PRIORITY;
+ io_u->flags |= IO_U_F_HIGH_PRIO;
}
}