Commit 127276c6 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe

blk-mq: reimplement blk_mq_hw_queue_mapped

Now the actual meaning of queue mapped is that if there is any online
CPU mapped to this hctx, so implement blk_mq_hw_queue_mapped() in this

Cc: Stefan Haberland <>
Tested-by: default avatarChristian Borntraeger <>
Reviewed-by: default avatarChristoph Hellwig <>
Reviewed-by: Sagi Grimberg's avatarSagi Grimberg <>
Signed-off-by: default avatarMing Lei <>
Signed-off-by: default avatarJens Axboe <>
parent efea8450
......@@ -181,7 +181,7 @@ static inline bool blk_mq_hctx_stopped(struct blk_mq_hw_ctx *hctx)
static inline bool blk_mq_hw_queue_mapped(struct blk_mq_hw_ctx *hctx)
return hctx->nr_ctx && hctx->tags;
return cpumask_first_and(hctx->cpumask, cpu_online_mask) < nr_cpu_ids;
void blk_mq_in_flight(struct request_queue *q, struct hd_struct *part,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment