All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: michael@freenet-ag.de
Cc: linux-scsi@vger.kernel.org
Subject: Re: Question on drivers/scsi/scsi_error.c
Date: Tue, 21 May 2002 13:59:19 -0400	[thread overview]
Message-ID: <20020521135919.C2101@redhat.com> (raw)
In-Reply-To: <20020521143114.21069.qmail@nostromo.freenet-ag.de>; from michael@freenet-ag.de on Tue, May 21, 2002 at 02:31:14PM -0000

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
  

      reply	other threads:[~2002-05-21 17:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-21 14:31 Question on drivers/scsi/scsi_error.c michael
2002-05-21 17:59 ` Doug Ledford [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020521135919.C2101@redhat.com \
    --to=dledford@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michael@freenet-ag.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.