]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: test QUEUE_FLAG_HCTX_ACTIVE for sbitmap_shared in hctx_may_queue
authorMing Lei <ming.lei@redhat.com>
Sun, 27 Dec 2020 11:34:58 +0000 (19:34 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 04:25:17 +0000 (21:25 -0700)
commit5480bee253a2849283c6ea7ffc63d6d07a78c0e6
treebf59e3c6196c0e4fcfa71ba7bed6368701620e2d
parentf7a9dab6077355a9a00e74439e1b442a7ea24922
blk-mq: test QUEUE_FLAG_HCTX_ACTIVE for sbitmap_shared in hctx_may_queue

In case of blk_mq_is_sbitmap_shared(), we should test QUEUE_FLAG_HCTX_ACTIVE against
q->queue_flags instead of BLK_MQ_S_TAG_ACTIVE.

So fix it.

Cc: John Garry <john.garry@huawei.com>
Cc: Kashyap Desai <kashyap.desai@broadcom.com>
Fixes: 2eb91dab6854 ("blk-mq: Record active_queues_shared_sbitmap per tag_set for when using shared sbitmap")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.h