diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-10-19 22:24:12 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-20 08:08:05 -0600 |
commit | 478eb72b815f33734723867ff236d96afa418d69 (patch) | |
tree | dc81054f6f79d225ae7afcbab10996ca42b3cc09 /block/bio.c | |
parent | 859897c3fb9ad12fef429b026154e11350d0ceac (diff) | |
download | lwn-478eb72b815f33734723867ff236d96afa418d69.tar.gz lwn-478eb72b815f33734723867ff236d96afa418d69.zip |
block: optimise req_bio_endio()
First, get rid of an extra branch and chain error checks. Also reshuffle
it with bio_advance(), so it goes closer to the final check, with that
the compiler loads rq->rq_flags only once, and also doesn't reload
bio->bi_iter.bi_size if bio_advance() didn't actually advanced the iter.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
0 files changed, 0 insertions, 0 deletions