Skip to content
Commit 8ec680e4 authored by Jens Axboe's avatar Jens Axboe
Browse files

ioprio: allow sys_ioprio_set() value of 0 to reset ioprio setting



Normally io priorities follow the CPU nice, unless a specific scheduling
class has been set. Once that is set, there's no way to reset the
behaviour to 'none' so that it follows CPU nice again.

Currently passing in 0 as the ioprio class/value will return -1/EINVAL,
change that to allow resetting of a set scheduling class.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 0e7be9ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment