os-linux: add initial support for IO priority hints
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 21 Jul 2023 11:05:07 +0000 (20:05 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jul 2023 20:07:28 +0000 (14:07 -0600)
commitb3048c1b564fc793ee11004a17b2a4de5a82be27
tree81e376ca372d33d06825ff97fb507b5e0cd5153e
parent2838f77aa80605c13cd18ce5e941005a42cec4a4
os-linux: add initial support for IO priority hints

Add initial support for Linux to allow specifying a hint for any
priority value. With this change, a priority value becomes the
combination of a priority class, a priority level and a hint.
The generic os.h ioprio manipulation macros, as well as the
os-dragonfly.h ioprio manipulation macros are modified to ignore this
hint.

For all other OSes that do not support priority classes, priotity hints
are ignored and always equal to 0.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Link: https://lore.kernel.org/r/20230721110510.44772-4-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
engines/cmdprio.c
options.c
os/os-dragonfly.h
os/os-linux.h
os/os.h