Add a flag that maps to the BLK_MQ_F_NO_SCHED_BY_DEFAULT. This flag selects the 'none' scheduler during queue registration in case of a single hwq or shared hwqs instead of 'mq-deadline'. Signed-off-by: Andreas Hindborg --- rust/kernel/block/mq/tag_set/flags.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/kernel/block/mq/tag_set/flags.rs b/rust/kernel/block/mq/tag_set/flags.rs index 768db938b9a95..1fca4fcb4dd20 100644 --- a/rust/kernel/block/mq/tag_set/flags.rs +++ b/rust/kernel/block/mq/tag_set/flags.rs @@ -15,5 +15,9 @@ pub enum Flag { /// processing IO. When this flag is not set, IO is processed in atomic /// context. When this flag is set, IO is processed in process context. Blocking = bindings::BLK_MQ_F_BLOCKING, + + /// Select 'none' during queue registration in case of a single hwq or shared + /// hwqs instead of 'mq-deadline'. + NoDefaultScheduler = bindings::BLK_MQ_F_NO_SCHED_BY_DEFAULT, } } -- 2.51.2