Re: [PATCH] block: Fix cloning of discard/write same bios

2014-02-11 Thread Jens Axboe
On Tue, Feb 11 2014, Richard W.M. Jones wrote: > On Mon, Feb 10, 2014 at 05:45:50PM -0800, Kent Overstreet wrote: > > Immutable biovecs changed the way bio segments are treated in such a way > > that > > bio_for_each_segment() cannot now do what we want for discard/write same > > bios, > > since

Re: [PATCH] block: Fix cloning of discard/write same bios

2014-02-11 Thread Richard W.M. Jones
On Mon, Feb 10, 2014 at 05:45:50PM -0800, Kent Overstreet wrote: > Immutable biovecs changed the way bio segments are treated in such a way that > bio_for_each_segment() cannot now do what we want for discard/write same bios, > since bi_size means something completely different for them. > > Fortu

[PATCH] block: Fix cloning of discard/write same bios

2014-02-10 Thread Kent Overstreet
Immutable biovecs changed the way bio segments are treated in such a way that bio_for_each_segment() cannot now do what we want for discard/write same bios, since bi_size means something completely different for them. Fortunately discard and write same bios never have more than a single biovec, so