From: Christoph Hellwig Date: Fri, 11 Mar 2016 16:34:53 +0000 (+0100) Subject: block: bio_remaining_done() isn't unlikely X-Git-Tag: v4.14-rc1~3615^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b885517110cbe8724fef30363778b6284d0a428;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/bio.c b/block/bio.c index e4682ec..0fde6e0 100644 --- a/block/bio.c +++ b/block/bio.c @@ -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; /*