]> Git Repo - linux.git/commit - block/bfq-iosched.h
block: Introduce IOPRIO_NR_LEVELS
authorDamien Le Moal <[email protected]>
Wed, 11 Aug 2021 03:37:01 +0000 (12:37 +0900)
committerJens Axboe <[email protected]>
Wed, 18 Aug 2021 13:21:12 +0000 (07:21 -0600)
commit202bc942c5cd4340d37b06c4e0b8b03f9925d818
treed035b4446726fef7015c835a569f83bf68d8beb3
parentba05200fcce0a73fa8db16c514fbaa476d1d9399
block: Introduce IOPRIO_NR_LEVELS

The BFQ scheduler and ioprio_check_cap() both assume that the RT
priority class (IOPRIO_CLASS_RT) can have up to 8 different priority
levels, similarly to the BE class (IOPRIO_CLASS_iBE). This is
controlled using the IOPRIO_BE_NR macro , which is badly named as the
number of levels also applies to the RT class.

Introduce the class independent IOPRIO_NR_LEVELS macro, defined to 8,
to make things clear. Keep the old IOPRIO_BE_NR macro definition as an
alias for IOPRIO_NR_LEVELS.

Signed-off-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/bfq-iosched.c
block/bfq-iosched.h
block/bfq-wf2q.c
block/ioprio.c
fs/f2fs/sysfs.c
include/uapi/linux/ioprio.h
This page took 0.065009 seconds and 4 git commands to generate.