On 10/7/19 4:12 PM, Damien Le Moal wrote: > A BIO based request queue does not have a tag_set, which prevent testing > for the flag BLK_MQ_F_NO_SCHED indicating that the queue does not > require an elevator. This leads to an incorrect initialization of a > default elevator in some cases such as BIO based nullblk (queue_mode == > BIO) with zoned mode enabled as the default elevator in this case is > mq-deadline instead of "none". > > Fix this by including the absence of a tag_set for a queue as an > indicator that the queue should not have an elevator. Why not just check for mq_ops? -- Jens Axboe