]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit077bca252767e8017a61e00210daee3a50a82f26
tree8b8d8043d38dd9faa0be7b32f0a3809ab24a2d01
parent9e7a0e1cc88104ae1839845e65fa009e9ed0573b
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