block: fix missing bio back/front segment size setting in blk_recount_segments()
authorJens Axboe <jens.axboe@oracle.com>
Fri, 6 Mar 2009 07:55:24 +0000 (08:55 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 6 Mar 2009 07:55:24 +0000 (08:55 +0100)
commit59247eaea50cc68cc6ce3d3fd3855f3301b65c96
tree76548e4273bb26568810095b14d62a4feaaf86a4
parenta3941ec101a5ec54c1e929730afeb196441a171e
block: fix missing bio back/front segment size setting in blk_recount_segments()

Commit 1e42807918d17e8c93bf14fbb74be84b141334c1 introduced a bug where we
don't get front/back segment sizes in the bio in blk_recount_segments().
Fix this by tracking the back bio as well as the front bio in
__blk_recalc_rq_segments(), this also cleans up the interface by getting
rid of the segment size pointer passing.

Tested-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-merge.c