projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aab1da
)
blk-mq: short cut the IPI path in blk_mq_force_complete_rq for !SMP
author
Christoph Hellwig
<hch@lst.de>
Thu, 11 Jun 2020 06:44:45 +0000
(08:44 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 24 Jun 2020 15:15:57 +0000
(09:15 -0600)
Let the compile optimize out the entire IPI path, given that we are
obviously not going to use it.
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index ea083f58d9da550a9f9f1179a6be4ac9cc24eee3..eef2f3c7f402fff026ddea66d255c13ec5bf58b4 100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-727,7
+727,8
@@
void blk_mq_force_complete_rq(struct request *rq)
return;
}
- if (!test_bit(QUEUE_FLAG_SAME_COMP, &q->queue_flags)) {
+ if (!IS_ENABLED(CONFIG_SMP) ||
+ !test_bit(QUEUE_FLAG_SAME_COMP, &q->queue_flags)) {
q->mq_ops->complete(rq);
return;
}