Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b885517 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

block: bio_remaining_done() isn't unlikely



We use bio chaining during most I/Os these days due to the delayed
bio splitting.  Additionally XFS will start using it, and there is
a pending direct I/O rewrite also making heavy use for it.  Don't
pretend it's always unlikely, and let the branch predictor do it's
job instead.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent ba8c6967
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1746,7 +1746,7 @@ static inline bool bio_remaining_done(struct bio *bio)
void bio_endio(struct bio *bio)
{
again:
	if (unlikely(!bio_remaining_done(bio)))
	if (!bio_remaining_done(bio))
		return;

	/*