提交 2b885517 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 ba8c6967
......@@ -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;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册