From: Sam Bradshaw Date: Wed, 15 May 2013 08:09:05 +0000 (+0200) Subject: mtip32xx: Correctly handle bio->bi_idx != 0 conditions X-Git-Tag: v3.10-rc6~20^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093c959307f2f5af72b24fdc4af7d4d0263f6eea;p=pandora-kernel.git mtip32xx: Correctly handle bio->bi_idx != 0 conditions Stacking drivers may append bvecs to existing bio's, resulting in non-zero bi_idx conditions. This patch counts the loops of bio_for_each_segment() rather than inheriting the bi_idx value to pass as a segment count to the hardware submission routine. Signed-off-by: Sam Bradshaw Signed-off-by: Jens Axboe --- Reading git-diff-tree failed