Re: [PATCH] [SCSI] sd: make error handling more robust (v2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

Given your recent call for review of the next 2.6.22-stable I'd
appreciate it if you and the rest of the stable team would strongly
consider this SCSI IO error propagation fix for inclusion in 2.6.22.17
(as well as the other stable trees).

please advise, thanks.
Mike


On Feb 1, 2008 3:47 PM, Salyzyn, Mark <Mark_Salyzyn@xxxxxxxxxxx> wrote:
> ACK
>
> Signed-off-by: Mark Salyzyn <aacraid@xxxxxxxxxxx>
>
> Mike Snitzer tested this also in conjunction with the aacraid driver and it resolved the error propagation problem he experienced with MD on a 2.6.22.16 kernel, recommend that this also be added to any stabilization for these other kernels. By his permission:
>
> Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxx>
>
> Sincerely -- Mark Salyzyn
>
> > -----Original Message-----
> > From: Tony Battersby [mailto:tonyb@xxxxxxxxxxxxxxx]
> > Sent: Friday, February 01, 2008 12:03 PM
> > To: linux-scsi@xxxxxxxxxxxxxxx; James Bottomley
> > Cc: Luben Tuikov; Salyzyn, Mark
> > Subject: [PATCH] [SCSI] sd: make error handling more robust (v2)
> >
> > 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.
> >
> > Applies to kernels 2.6.18 - 2.6.24-git10+.
> >
> > --- linux-2.6.24-git10/drivers/scsi/sd.c.orig   2008-02-01
> > 11:24:37.000000000 -0500
> > +++ linux-2.6.24-git10/drivers/scsi/sd.c        2008-02-01
> > 11:26:12.000000000 -0500
> > @@ -990,6 +990,8 @@ static int sd_done(struct scsi_cmnd *SCp
> >                 /* This computation should always be done in terms of
> >                  * the resolution of the device's medium.
> >                  */
> > +               if (bad_lba < start_lba)
> > +                       goto out;
> >                 good_bytes = (bad_lba -
> > start_lba)*SCpnt->device->sector_size;
> >                 break;
> >         case RECOVERED_ERROR:
> >
> >
> >
>
-
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux