Skip to content

Commit

Permalink
block: bio_remaining_done() isn't unlikely
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Mar 14, 2016
1 parent ba8c696 commit 2b88551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 2b88551

Please sign in to comment.