mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 way. Cc: Stefan Haberland <[email protected]> Tested-by: Christian Borntraeger <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
1 parent
efea8450c3
commit
127276c6ce
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user