blk-mq: skip unmapped queues in blk_mq_alloc_request_hctx
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2016 16:25:48 +0000 (10:25 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 23 Sep 2016 16:25:48 +0000 (10:25 -0600)
commitc8712c6a674e3382fe4d26d108251ccfa55d08e0
tree0448232c6dc785440ade5f5ee5e648d9fc56d996
parent3b4ac78610690bd83fb33762ef97e8b8a89285ae
blk-mq: skip unmapped queues in blk_mq_alloc_request_hctx

This provides the caller a feedback that a given hctx is not mapped and thus
no command can be sent on it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c