All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: "michaelc@cs.wisc.edu" <michaelc@cs.wisc.edu>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"jens.axboe@oracle.com" <jens.axboe@oracle.com>
Subject: Re: [PATCH 6/9] lpfc: start to use new trasnport errors.
Date: Sun, 24 Aug 2008 21:54:25 -0400	[thread overview]
Message-ID: <48B210D1.2090605@emulex.com> (raw)
In-Reply-To: <1219189531-5243-7-git-send-email-michaelc@cs.wisc.edu>

Mike,

This patch was superceeded by a change in our 8.2.8 patch set.
See: http://marc.info/?l=linux-scsi&m=121962902831367&w=2

thanks

-- james s

michaelc@cs.wisc.edu wrote:
> From: Mike Christie <michaelc@cs.wisc.edu>
> 
> This patch converts lpfc to use DID_TRANSPORT_DISRUPTED. I did not
> do the queuecommand conversion of DID_BUS_BUSY because the
> SCSI_MLQUEUE_TARGET_BUSY patches convert that.
> 
> Patch was tested with a direct connection by unplugging cables.
> I did not hit the port of fabric busy paths, but saw that a distro
> lpfc driver converted that bus busy to DID_TRANSPORT_DISRUPTED.
> Also it looks like qla2xxx blocks the rport for that case.
> 
> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
> ---
>  drivers/scsi/lpfc/lpfc_scsi.c |   11 +++++++++--
>  1 files changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
> index 1bcebbd..3678adf 100644
> --- a/drivers/scsi/lpfc/lpfc_scsi.c
> +++ b/drivers/scsi/lpfc/lpfc_scsi.c
> @@ -570,7 +570,7 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
>                         break;
>                 case IOSTAT_NPORT_BSY:
>                 case IOSTAT_FABRIC_BSY:
> -                       cmd->result = ScsiResult(DID_BUS_BUSY, 0);
> +                       cmd->result = ScsiResult(DID_TRANSPORT_DISRUPTED, 0);
>                         break;
>                 case IOSTAT_LOCAL_REJECT:
>                         if (lpfc_cmd->result == RJT_UNAVAIL_PERM ||
> @@ -586,7 +586,14 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
> 
>                 if (!pnode || !NLP_CHK_NODE_ACT(pnode)
>                     || (pnode->nlp_state != NLP_STE_MAPPED_NODE))
> -                       cmd->result = ScsiResult(DID_BUS_BUSY, SAM_STAT_BUSY);
> +                       /*
> +                        * Port is not setup so fail IO with
> +                        * DID_TRANSPORT_DISRUPTED, and allow the fc
> +                        * class to determine what to do with it when
> +                        * its timers fire.
> +                        */
> +                       cmd->result = ScsiResult(DID_TRANSPORT_DISRUPTED,
> +                                                SAM_STAT_BUSY);
>         } else {
>                 cmd->result = ScsiResult(DID_OK, 0);
>         }
> --
> 1.5.4.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

      parent reply	other threads:[~2008-08-25  1:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 23:45 fast fail improvements (take2) michaelc
2008-08-19 23:45 ` [PATCH 1/9] fc class: unblock target after calling terminate callback (take 2) michaelc
2008-08-19 23:45   ` [PATCH 2/9] fc drivers: remove scsi_target_unblock calls in terminate callbacks michaelc
2008-08-19 23:45     ` [PATCH 3/9] scsi: add transport host byte errors (v3) michaelc
2008-08-19 23:45       ` [PATCH 4/9] iscsi class, libiscsi and qla4xxx: convert to new transport host byte values michaelc
2008-08-19 23:45         ` [PATCH 5/9] fc class: Add support for new transport errors michaelc
2008-08-19 23:45           ` [PATCH 6/9] lpfc: start to use new trasnport errors michaelc
2008-08-19 23:45             ` [PATCH 7/9] qla2xxx: use new host byte transport errors michaelc
2008-08-19 23:45               ` [PATCH 8/9] block: separate failfast into multiple bits michaelc
2008-08-19 23:45                 ` [PATCH 9/9] scsi: modify scsi to handle new fail fast flags michaelc
2008-08-25  1:54             ` James Smart [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=48B210D1.2090605@emulex.com \
    --to=james.smart@emulex.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    /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.