[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [Bcache v13 01/16] Only clone bio vecs that are in use
- From: Jeff Moyer <jmoyer redhat com>
- To: Kent Overstreet <koverstreet google com>
- Cc: dm-devel redhat com, linux-kernel vger kernel org, linux-bcache vger kernel org, agk redhat com, tejun google com, Vivek Goyal <vgoyal redhat com>
- Subject: Re: [dm-devel] [Bcache v13 01/16] Only clone bio vecs that are in use
- Date: Fri, 11 May 2012 09:29:42 -0400
[top posting fixed]
Kent Overstreet <koverstreet google com> writes:
> 2012/5/10 Vivek Goyal <vgoyal redhat com>:
>> On Wed, May 09, 2012 at 11:08:13PM -0400, Kent Overstreet wrote:
>>
>> [..]
>>> -
>>> - if (bio_integrity(bio)) {
>>> - bio_integrity_clone(clone, bio, GFP_NOIO, bs);
>>> -
>>> +#if 0
>>> + if (bio_integrity(bio))
>>> if (idx != bio->bi_idx || clone->bi_size < bio->bi_size)
>>> bio_integrity_trim(clone,
>>> bio_sector_offset(bio, idx, 0), len);
>>> - }
>>> -
>>> +#endif
>>
>> Dead/debug code under "#if 0" ?
>>
> Oh, I never got around to figuring out what needed to be done with the
> bio integrity - presumably it'll have to be handled differently
> somehow (I'm assuming an index in the integrity bvec is intended to
> match up with an index in the regular bvec), but I don't have any way
> to test the integrity stuff.
The scsi debug module supports dif/dix, so you can use that for testing.
Cheers,
Jeff
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]