On Feb 2, 2008 5:06 PM, James Bottomley <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > > --- > > > > 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 <[EMAIL PROTECTED]> > 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 <[EMAIL PROTECTED]> > Cc: Stable Tree <[EMAIL PROTECTED]> > Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
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. Tested-by: Mike Snitzer <[EMAIL PROTECTED]> Mike - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html