Browse Source

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>
Christoph Hellwig 9 years ago
parent
commit
2b88551711
1 changed files with 1 additions and 1 deletions
  1. 1 1
      block/bio.c

+ 1 - 1
block/bio.c

@@ -1746,7 +1746,7 @@ static inline bool bio_remaining_done(struct bio *bio)
 void bio_endio(struct bio *bio)
 void bio_endio(struct bio *bio)
 {
 {
 again:
 again:
-	if (unlikely(!bio_remaining_done(bio)))
+	if (!bio_remaining_done(bio))
 		return;
 		return;
 
 
 	/*
 	/*