projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efea845
)
blk-mq: reimplement blk_mq_hw_queue_mapped
author
Ming Lei
<
[email protected]
>
Sun, 8 Apr 2018 09:48:13 +0000
(17:48 +0800)
committer
Jens Axboe
<
[email protected]
>
Tue, 10 Apr 2018 14:38:46 +0000
(08:38 -0600)
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]
>
block/blk-mq.h
patch
|
blob
|
history
diff --git
a/block/blk-mq.h
b/block/blk-mq.h
index 88c558f718190f88e123bba0444b0c50b296e572..502af371b83bf328aba00b174042b93142d91120 100644
(file)
--- a/
block/blk-mq.h
+++ b/
block/blk-mq.h
@@
-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->tag
s;
+ return
cpumask_first_and(hctx->cpumask, cpu_online_mask) < nr_cpu_id
s;
}
void blk_mq_in_flight(struct request_queue *q, struct hd_struct *part,