Re: [PATCH] mtip32xx: Correctly handle bio->bi_idx != 0 conditions

From: Jens Axboe
Date: Wed May 15 2013 - 04:10:34 EST


On Tue, May 14 2013, Sam Bradshaw wrote:
>
> 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.

Yup, that's a plain bug. Iteration always starts at current index and
forward, so nents wont necessarily start at 0. Applied.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/