]> git.baikalelectronics.ru Git - kernel.git/commit
block: only mark bio as tracked if it really is tracked
authorJens Axboe <axboe@kernel.dk>
Sat, 16 Oct 2021 02:06:18 +0000 (20:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 14:50:47 +0000 (08:50 -0600)
commit6834f4e656dbadbc867c75501bff4f4c65f554ed
tree2cb9222d749ed8f3d8f2aaedd7ca28aba9476c3c
parent374fce0f436916d5c62dfa175009048c3ed749ff
block: only mark bio as tracked if it really is tracked

We set BIO_TRACKED unconditionally when rq_qos_throttle() is called, even
though we may not even have an rq_qos handler. Only mark it as TRACKED if
it really is potentially tracked.

This saves considerable time for the case where the bio isn't tracked:

     2.64%     -1.65%  [kernel.vmlinux]  [k] bio_endio

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-rq-qos.h