OSDN Git Service

block: move blk_mq_tag_to_rq() inline
authorJens Axboe <axboe@kernel.dk>
Sat, 16 Oct 2021 22:38:14 +0000 (16:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:55:41 +0000 (05:55 -0600)
commite028f167eca5fc56938e6c1680d40eed0bc39e80
tree8b8d8043d38dd9faa0be7b32f0a3809ab24a2d01
parentdf87eb0fce8fc891b43199447b9aeb3ea2d39bcf
block: move blk_mq_tag_to_rq() inline

This is in the fast path of driver issue or completion, and it's a single
array index operation. Move it inline to avoid a function call for it.

This does mean making struct blk_mq_tags block layer public, but there's
not really much in there.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.h
block/blk-mq.c
include/linux/blk-mq.h