Skip to content

Commit 2b88551

Browse files
Christoph Hellwigaxboe
authored andcommitted
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: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent ba8c696 commit 2b88551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/bio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ static inline bool bio_remaining_done(struct bio *bio)
17461746
void bio_endio(struct bio *bio)
17471747
{
17481748
again:
1749-
if (unlikely(!bio_remaining_done(bio)))
1749+
if (!bio_remaining_done(bio))
17501750
return;
17511751

17521752
/*

0 commit comments

Comments
 (0)