mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
blk-mq: short cut the IPI path in blk_mq_force_complete_rq for !SMP
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>
This commit is contained in:
parent
6aab1da603
commit
d6cc464cc5
@ -727,7 +727,8 @@ void blk_mq_force_complete_rq(struct request *rq)
|
|||||||
return;
|
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);
|
q->mq_ops->complete(rq);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user