]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: only dispatch to non-defauly queue maps if they have queues
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Dec 2018 11:16:26 +0000 (12:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Dec 2018 12:44:45 +0000 (05:44 -0700)
commit6af20382ce24569c66f510f80117db9d8f32d12a
treee99f8902a6bcaa8eebaae309059b239f966eaac6
parent8aded79b1f925154ebbc3318b1f3042d2ad9e7a5
blk-mq: only dispatch to non-defauly queue maps if they have queues

We should check if a given queue map actually has queues enabled before
dispatching to it.  This allows drivers to not initialize optional but
not used map types, which subsequently will allow fixing problems with
queue map rebuilds for that case.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.h