From: Mike Christie <michaelc@cs.wisc.edu>
To: dm-devel@redhat.com, linux-scsi@vger.kernel.org
Subject: Re: [PATCH RFC] replace dm hw handlers with scsi handlers
Date: Thu, 12 Oct 2006 15:21:15 -0500 [thread overview]
Message-ID: <452EA3BB.8020305@cs.wisc.edu> (raw)
In-Reply-To: <1160684310.4163.4.camel@madmax>
Mike Christie wrote:
> +
> +static int clariion_check_sense(struct scsi_sense_hdr *sense_hdr)
> +{
> + switch (sense_hdr->sense_key) {
> + case NOT_READY:
> + if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x03)
> + /*
> + * LUN Not Ready - Manual Intervention Required
> + * indicates this is a passive path.
> + *
> + * FIXME: However, if this is seen and EVPD C0
> + * indicates that this is due to a NDU in
> + * progress, we should set FAIL_PATH too.
> + * This indicates we might have to do a SCSI
> + * inquiry in the end_io path. Ugh.
> + */
> + return FAILED;
> + break;
> + case ILLEGAL_REQUEST:
> + if (sense_hdr->asc == 0x25 && sense_hdr->ascq == 0x01)
> + /*
> + * An array based copy is in progress. Do not
> + * fail the path, do not bypass to another PG,
> + * do not retry. Fail the IO immediately.
> + * (Actually this is the same conclusion as in
> + * the default handler, but lets make sure.)
> + */
> + return FAILED;
> + break;
> + case UNIT_ATTENTION:
> + if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00)
> + /*
> + * Unit Attention Code. This is the first IO
> + * to the new path, so just retry.
> + */
> + return NEEDS_RETRY;
> + break;
> + }
> +
> + /* success just means we do not care what scsi-ml does */
> + return SUCCESS;
> +}
> +
Oh yeah, Ed could you tell me where sometimes a commend gets retried
over and over when a path is passive and can you tell me on what error
values it does this so I can add this in? Does the check_sense code
force the retry, or scsi_io_completion or the ULD?
next prev parent reply other threads:[~2006-10-12 20:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 20:18 [PATCH RFC] replace dm hw handlers with scsi handlers Mike Christie
2006-10-12 20:21 ` Mike Christie [this message]
2006-10-14 13:09 ` Mike Christie
2006-10-17 8:37 ` [dm-devel] " Christophe Varoqui
2006-10-18 14:33 ` Hannes Reinecke
2006-10-18 16:27 ` Mike Christie
2006-10-20 0:40 ` Dave Wysochanski
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=452EA3BB.8020305@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@vger.kernel.org \
/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.