Received: by 10.213.65.68 with SMTP id h4csp287862imn; Fri, 23 Mar 2018 04:48:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELtRs5dtZ10cUMh+DgjP4W9YiIDuLjrEuaUmGHeLXH3NNf62yEl4XNWhTP5DDopGUJ9p9F0n X-Received: by 10.99.115.84 with SMTP id d20mr20888694pgn.362.1521805702747; Fri, 23 Mar 2018 04:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521805702; cv=none; d=google.com; s=arc-20160816; b=1KJ39UYC44EkhptaRRPzxJRjw8vukEZSXc/R+iwmXHN8W7ndYTF9JL9wcowbqDAsUT Ouz1wuXd9vJ5Hu2YdsVPHGTsmAD100Z0NZdqWH5CyXp+t6HG/iF2plYd0E89AI0QQ0Rr T6yqelHcy+/rWr/ENozrQpzxV0l+orqVjWJJrIJMtiP8qpZ9gE/b4WVFTAHmsfRR33NR LSkDuWncL/V2BdazzlBAfFzsV9SPZuTZ++eRPYmztRYvQcJt3c9C4tZG3KBUBcuWUHN2 MU3s20UZc/lwIRMFvzKepTl8LHblTPa4ptOhiE5CqlQAS+k9n0o4rM2gpq42zD2DTJQ4 udUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qytAUEF5Wbo0E05ZVqTc3F6KDFaqL8TbQ20lkpjVQ6Q=; b=AN+WW5HLa43iWi/DS3lHAP+42eDXBX9vmfXYy5v2jaek2ALxOcRMb5ZJ50dgUzO1aL PvDOFBT02NYwItKBpDRLf+tUt4YeTKFak9XgfFeyqzToaWTW3jC3qFu6ZUdkxr+1OAV5 fWY8he7CJJtOYbbjvanVrWxXqYNxiPfyU3PdmDKFDkUlthCi6oT96aL/mJW9m+Dl6mEQ cqcFB0lQodUvXEeV/nvUYrRTGLGt6Z1ymhlgUu0h+K2+rvoFJx0CaOPTpYVs3KuSTQlh 9AVEHtjDQINpKypojugoINXtQSJGWfGi0LYXROsIAe8g6sVzm1QfuGZpG6NDYY7xaDe3 +FxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si5818829pgt.442.2018.03.23.04.48.08; Fri, 23 Mar 2018 04:48:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754368AbeCWLrE (ORCPT + 99 others); Fri, 23 Mar 2018 07:47:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38414 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754269AbeCWKCl (ORCPT ); Fri, 23 Mar 2018 06:02:41 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 56C7111DA; Fri, 23 Mar 2018 10:02:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dick Kennedy , James Smart , Hannes Reinecke , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 57/77] scsi: lpfc: Fix issues connecting with nvme initiator Date: Fri, 23 Mar 2018 10:54:31 +0100 Message-Id: <20180323094146.100817848@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094142.260022880@linuxfoundation.org> References: <20180323094142.260022880@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Smart [ Upstream commit e06351a002214d152142906a546006e3446d1ef7 ] In the lpfc discovery engine, when as a nvme target, where the driver was performing mailbox io with the adapter for port login when a NVME PRLI is received from the host. Rather than queue and eventually get back to sending a response after the mailbox traffic, the driver rejected the io with an error response. Turns out this particular initiator didn't like the rejection values (unable to process command/command in progress) so it never attempted a retry of the PRLI. Thus the host never established nvme connectivity with the lpfc target. By changing the rejection values (to Logical Busy/nothing more), the initiator accepted the response and would retry the PRLI, resulting in nvme connectivity. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/lpfc/lpfc_nportdisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/scsi/lpfc/lpfc_nportdisc.c +++ b/drivers/scsi/lpfc/lpfc_nportdisc.c @@ -1569,8 +1569,8 @@ lpfc_rcv_prli_reglogin_issue(struct lpfc ndlp->nlp_rpi, ndlp->nlp_state, ndlp->nlp_flag); memset(&stat, 0, sizeof(struct ls_rjt)); - stat.un.b.lsRjtRsnCode = LSRJT_UNABLE_TPC; - stat.un.b.lsRjtRsnCodeExp = LSEXP_CMD_IN_PROGRESS; + stat.un.b.lsRjtRsnCode = LSRJT_LOGICAL_BSY; + stat.un.b.lsRjtRsnCodeExp = LSEXP_NOTHING_MORE; lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL); return ndlp->nlp_state;