OSDN Git Service

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)
commit5aceaeb26394538858a9dbae5830d628469a44cf
treee99f8902a6bcaa8eebaae309059b239f966eaac6
parent346fc1089e5d4734990b4b6c3cd0cdeae9ae482d
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