mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
Commit 1e42807918 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 <[email protected]>
Tested-by: Ingo Molnar <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>