]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit350c6643591604187c9054b615a86174041ed2c8
tree1abcf85f04c407c5f18268c1e84acb99244a7e38
parent742057c3b114e235a21e8b7b1182d49db42b54da
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