All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Reed <mdr@sgi.com>
To: michaelc@cs.wisc.edu
Cc: linux-scsi@vger.kernel.org, david.somayajulu@qlogic.com,
	andrew.vasquez@qlogic.com, James.Smart@Emulex.com,
	Eric.Moore@lsil.com
Subject: Re: [PATCH 9/9] mptfc: convert mptfc to use fc queueing helper.
Date: Thu, 13 Mar 2008 13:53:07 -0500	[thread overview]
Message-ID: <47D97813.5040505@sgi.com> (raw)
In-Reply-To: <1204448602-5435-9-git-send-email-michaelc@cs.wisc.edu>



michaelc@cs.wisc.edu wrote:
> From: Mike Christie <michaelc@cs.wisc.edu>
> 
> Convert mptfc to use fc queueing helper.

I've been trying to exercise the fusion FC change.
I can't seem to force the code into returning either
TARGET_BUSY or DID_NO_CONNECT.  Any suggestions on
how I might get a command down to the driver while
the rport is blocked or in DEVLOSS_PENDING?

I've been running 32 outstanding commands to 16 targets,
disabling/enabling the various FC switch ports, AND
I disabled the usage of the scsi_host_lock in
fc_remote_port_delete() and I unlock/relock it in the
mptfc_qmnd() function.

Thanks,
 Mike

> 
> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
> ---
>  drivers/message/fusion/mptfc.c |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c
> index 3cdd4e9..1189bbe 100644
> --- a/drivers/message/fusion/mptfc.c
> +++ b/drivers/message/fusion/mptfc.c
> @@ -656,9 +656,10 @@ mptfc_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
>  		return 0;
>  	}
>  
> -	err = fc_remote_port_chkready(rport);
> -	if (unlikely(err)) {
> -		SCpnt->result = err;
> +	err = fc_remote_port_queue_ready(rport, SCpnt);
> +	if (err)
> +		return err;
> +	if (SCpnt->result) {
>  		done(SCpnt);
>  		return 0;
>  	}

  reply	other threads:[~2008-03-13 18:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02  9:03 [PATCH 1/9] scsi: Add helper code so transport classes/driver can control queueing michaelc
2008-03-02  9:03 ` [PATCH 2/9] iscsi: user per target can_queue and return SCSI_MLQUEUE_TARGET_BUSY michaelc
2008-03-02  9:03   ` [PATCH 3/9] iscsi class: add iscsi queueing helper michaelc
2008-03-02  9:03     ` [PATCH 4/9] qla4xxx: use SCSI_ML_TARGET_BUSY and iscsi helper michaelc
2008-03-02  9:03       ` [PATCH 5/9] libiscsi: use iscsi queueing helper michaelc
2008-03-02  9:03         ` [PATCH 6/9] fc class: add fc " michaelc
2008-03-02  9:03           ` [PATCH 7/9] qla2xxx: convert to use fc helper and SCSI_MLQUEUE_TARGET_BUSY michaelc
2008-03-02  9:03             ` [PATCH 8/9] lpfc: " michaelc
2008-03-02  9:03               ` [PATCH 9/9] mptfc: convert mptfc to use fc queueing helper michaelc
2008-03-13 18:53                 ` Michael Reed [this message]
2008-03-17 18:32                   ` Mike Christie
2008-03-17 18:39                     ` Mike Christie
2008-03-13 14:35           ` [PATCH 6/9] fc class: add " Michael Reed
2008-03-13 15:36             ` Mike Christie
2008-03-03 17:34       ` [PATCH 4/9] qla4xxx: use SCSI_ML_TARGET_BUSY and iscsi helper David C Somayajulu
2008-03-02  9:08 ` [PATCH 1/9] scsi: Add helper code so transport classes/driver can control queueing Mike Christie
2008-03-18  4:38 ` Mike Christie

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=47D97813.5040505@sgi.com \
    --to=mdr@sgi.com \
    --cc=Eric.Moore@lsil.com \
    --cc=James.Smart@Emulex.com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=david.somayajulu@qlogic.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.