linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on drivers/scsi/scsi_error.c
@ 2002-05-21 14:31 michael
  2002-05-21 17:59 ` Doug Ledford
  0 siblings, 1 reply; 2+ messages in thread
From: michael @ 2002-05-21 14:31 UTC (permalink / raw)
  To: linux-scsi

Hello,

why does scsi_check_sense return SUCCESS on e.g. HARDWARE_ERRORs?

        case ILLEGAL_REQUEST:
        case BLANK_CHECK:
        case DATA_PROTECT:
        case HARDWARE_ERROR:
        default:
                return SUCCESS;

I think that those errors should return FAILED, but I may overlook
something.  Please send Cc: to me, as I am not subscribed to the list.

Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question on drivers/scsi/scsi_error.c
  2002-05-21 14:31 Question on drivers/scsi/scsi_error.c michael
@ 2002-05-21 17:59 ` Doug Ledford
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Ledford @ 2002-05-21 17:59 UTC (permalink / raw)
  To: michael; +Cc: linux-scsi

On Tue, May 21, 2002 at 02:31:14PM -0000, michael@freenet-ag.de wrote:
> Hello,
> 
> why does scsi_check_sense return SUCCESS on e.g. HARDWARE_ERRORs?
> 
>         case ILLEGAL_REQUEST:
>         case BLANK_CHECK:
>         case DATA_PROTECT:
>         case HARDWARE_ERROR:
>         default:
>                 return SUCCESS;
> 
> I think that those errors should return FAILED, but I may overlook
> something.  Please send Cc: to me, as I am not subscribed to the list.

Because returning SUCCESS from scsi_check_sense causes the command to be 
sent back to the upper layers as completed, where the sd layer can then 
remap the command to get around the hardware error if it so chooses and 
then send a new command back down.

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-21 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-21 14:31 Question on drivers/scsi/scsi_error.c michael
2002-05-21 17:59 ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).