From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer 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 Message-ID: References: <20120510213556.GO23768@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: (Kent Overstreet's message of "Thu, 10 May 2012 14:42:17 -0700") Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kent Overstreet Cc: Vivek Goyal , linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dm-devel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, tejun-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, agk-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Martin Peterson List-Id: linux-bcache@vger.kernel.org [top posting fixed] Kent Overstreet writes: > 2012/5/10 Vivek Goyal : >> On Wed, May 09, 2012 at 11:08:13PM -0400, Kent Overstreet wrote: >> >> [..] >>> - >>> - =C2=A0 =C2=A0 if (bio_integrity(bio)) { >>> - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 bio_integrity_clone(clo= ne, bio, GFP_NOIO, bs); >>> - >>> +#if 0 >>> + =C2=A0 =C2=A0 if (bio_integrity(bio)) >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (idx !=3D bio->= bi_idx || clone->bi_size < bio->bi_size) >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 bio_integrity_trim(clone, >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0bio_sector_offset(bio, idx, 0), len); >>> - =C2=A0 =C2=A0 } >>> - >>> +#endif >> >> Dead/debug code under "#if 0" ? >> > Oh, I never got around to figuring out what needed to be done with th= e > 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= =2E Cheers, Jeff