OSDN Git Service

block: inline fast path of driver tag allocation
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 14:28:14 +0000 (08:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 21:18:25 +0000 (15:18 -0600)
commita808a9d545cdffb964f27239d1fc0c6e2330b424
tree4157216f874fa4385bc09f2ac1500cebee9a2ab0
parentd92ca9d8348fb12c89eac5928bd651c3a485d7b9
block: inline fast path of driver tag allocation

If we don't use an IO scheduler or have shared tags, then we don't need
to call into this external function at all. This saves ~2% for such
a setup.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk-mq.h