blk-mq: short cut the IPI path in blk_mq_force_complete_rq for !SMP
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Jun 2020 06:44:45 +0000 (08:44 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jun 2020 15:15:57 +0000 (09:15 -0600)
commitd6cc464cc58424e137eca5e0a53226291044f5d2
treebd3ac889a723a79fa33b682fff8ce9ef9de5810f
parent6aab1da603e731383b342dbe612f92cd222fe56b
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>
block/blk-mq.c