block: bio_remaining_done() isn't unlikely
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Mar 2016 16:34:53 +0000 (17:34 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 14 Mar 2016 14:55:25 +0000 (08:55 -0600)
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>
block/bio.c

index e4682ec11fcd111f4938c94286d0ea28426e8013..0fde6e0e81f20ab764d519bc625ef803bae50961 100644 (file)
@@ -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;
 
        /*