]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78a37e913d226a6196b0afb84d51bf2f265a7cb3
tree76548e4273bb26568810095b14d62a4feaaf86a4
parent376d2a6b213bd664ad593130a0a17f3adfbe64d4
block: fix missing bio back/front segment size setting in blk_recount_segments()

Commit 29bd6f25747fedb54393e6304ddf33f041218643 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