block: don't use bio_has_data() in the completion path
authorJens Axboe <jens.axboe@oracle.com>
Tue, 26 Aug 2008 11:34:34 +0000 (13:34 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:09 +0000 (08:56 +0200)
commit605401618ce4409045bc4db86e88d4b38f2ad585
tree1abcf85f04c407c5f18268c1e84acb99244a7e38
parentab780f1ece0dc8d5e8e8e85435acc5e4747ccda3
block: don't use bio_has_data() in the completion path

We should just check for rq->bio, as that is really the information
we are looking for. Even if the bio attached doesn't carry data,
we still need to do IO post processing on it.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c