All of lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Madhani <himanshu.madhani@oracle.com>
To: Nilesh Javali <njavali@marvell.com>,
	martin.petersen@oracle.com, emilne@redhat.com
Cc: linux-scsi@vger.kernel.org, GR-QLogic-Storage-Upstream@marvell.com
Subject: Re: [PATCH 2/3] qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV.
Date: Fri, 27 Mar 2020 09:18:23 -0500	[thread overview]
Message-ID: <0b5a3baf-50ec-d188-5eb2-07c1c48c1f60@oracle.com> (raw)
In-Reply-To: <20200327102730.22351-3-njavali@marvell.com>

On 3/27/2020 5:27 AM, Nilesh Javali wrote:
> From: Arun Easi <aeasi@marvell.com>
> 
> In NPIV environment, a NPIV host may use a queue pair created
> by base host or other NPIVs, so the check for a queue pair
> created by this NPIV is not correct, and can cause an abort
> to fail, which in turn means the NVME command not returned.
> This leads to hang in nvme_fc layer in nvme_fc_delete_association()
> which waits for all I/Os to be returned, which is seen as hang
> in the application.
> 
> Signed-off-by: Arun Easi <aeasi@marvell.com>
> Signed-off-by: Nilesh Javali <njavali@marvell.com>
> ---
>   drivers/scsi/qla2xxx/qla_mbx.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
> index 9fd83d1bffe0..7cefe35d61d1 100644
> --- a/drivers/scsi/qla2xxx/qla_mbx.c
> +++ b/drivers/scsi/qla2xxx/qla_mbx.c
> @@ -3153,7 +3153,7 @@ qla24xx_abort_command(srb_t *sp)
>   	ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c,
>   	    "Entered %s.\n", __func__);
>   
> -	if (vha->flags.qpairs_available && sp->qpair)
> +	if (sp->qpair)
>   		req = sp->qpair->req;
>   	else
>   		return QLA_FUNCTION_FAILED;
> 
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

  reply	other threads:[~2020-03-27 14:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27 10:27 [PATCH 0/3] qla2xxx: Updates for the driver Nilesh Javali
2020-03-27 10:27 ` [PATCH 1/3] qla2xxx: Fix MPI failure AEN (8200) handling Nilesh Javali
2020-03-27 14:20   ` Himanshu Madhani
2020-03-30 13:42     ` Himanshu Madhani
2020-03-27 10:27 ` [PATCH 2/3] qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV Nilesh Javali
2020-03-27 14:18   ` Himanshu Madhani [this message]
2020-03-27 10:27 ` [PATCH 3/3] qla2xxx: delete all sessions before unregister local nvme port Nilesh Javali
2020-03-27 14:19   ` Himanshu Madhani
2020-03-27 13:37 ` [PATCH 0/3] qla2xxx: Updates for the driver Nilesh Javali

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=0b5a3baf-50ec-d188-5eb2-07c1c48c1f60@oracle.com \
    --to=himanshu.madhani@oracle.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=emilne@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=njavali@marvell.com \
    /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.