--- On Sun, 2/3/08, Mike Snitzer <snitzer@xxxxxxxxx> wrote: > From: Mike Snitzer <snitzer@xxxxxxxxx> > Subject: Re: [PATCH] [SCSI] sd: make error handling more robust (v2) > To: "James Bottomley" <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> > Cc: "Tony Battersby" <tonyb@xxxxxxxxxxxxxxx>, "linux-scsi@xxxxxxxxxxxxxxx" <linux-scsi@xxxxxxxxxxxxxxx>, "Luben Tuikov" <ltuikov@xxxxxxxxx>, "Salyzyn, Mark" <Mark_Salyzyn@xxxxxxxxxxx> > Date: Sunday, February 3, 2008, 7:14 AM > On Feb 2, 2008 5:06 PM, James Bottomley > <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> wrote: > > > > On Fri, 2008-02-01 at 12:03 -0500, Tony Battersby > wrote: > > > This patch fixes a problem with some out-of-spec > SCSI disks that report > > > hardware or medium errors incorrectly. Without > the patch, the kernel > > > may silently ignore a failed write command or > return corrupted data on a > > > failed read command. > > > > > > Signed-off-by: Tony Battersby > <tonyb@xxxxxxxxxxxxxxx> > > > --- > > > > > > This is a simplified version of the original > patch that fixes just the > > > problem at hand, without trying to handle other > theoretical out-of-spec > > > cases. > > > > Actually, to restore the original check, this is what > we want, isn't it? > > Ok, so I also made the sector division logic > futureproof for the day we > > have > 4096 sector devices ... > > > > James > > > > --- > > > > >From 5ae2e4a8ff095aab5997f17068d3e4212c33f039 Mon > Sep 17 00:00:00 2001 > > From: Tony Battersby <tonyb@xxxxxxxxxxxxxxx> > > Date: Fri, 1 Feb 2008 12:03:27 -0500 > > Subject: [SCSI] sd: make error handling more robust > > > > This patch fixes a problem with some out-of-spec SCSI > disks that report > > hardware or medium errors incorrectly. Without the > patch, the kernel > > may silently ignore a failed write command or return > corrupted data on a > > failed read command. > > > > Signed-off-by: Tony Battersby > <tonyb@xxxxxxxxxxxxxxx> > > Cc: Stable Tree <stable@xxxxxxxxxx> > > Signed-off-by: James Bottomley > <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> > > I've verified that this patch fixes the 2.6.22.16 SCSI > IO error > propagation issue I had when physically pulling a drive > from an > enclosure connected to an aacraid controller. Just as in your case and Tony's case, which I presume uses the same RAID firmware vendor, it would've probably been better if the RAID firmware vendor fixed the firmware to not set the VALID bit if the INFORMATION field is not valid. Luben - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html