Received: by 10.223.185.116 with SMTP id b49csp5885767wrg; Wed, 7 Mar 2018 21:02:25 -0800 (PST) X-Google-Smtp-Source: AG47ELvBuDswWncuNnH73rtLcWFX4cjvb6B6VHQ1lXOpHGmjEVUKfaJjR1IY37smTu4/r/Yxai3h X-Received: by 10.101.65.71 with SMTP id x7mr20211492pgp.203.1520485345293; Wed, 07 Mar 2018 21:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520485345; cv=none; d=google.com; s=arc-20160816; b=llL3IUYw6T+gmJatOEXbsb8vDqXtHGJBo+MQ6807GCzZSP/gPNQos43M2jowgObODE q9LAWrdN2Clcj0hRtMgjJplyvICL2Nlpekv6i6L06hcHFJ6oTF6CXuNikNDaSiPuWpNw E4/aRwC9VelTTy7ai+fyPKldQbrV2rgIGyWa3TiP59IzmcDG2VPb7hgii7LaRGoWVGEY wpT4mPmS1RvHlX5R3ECgCPdE2+DCicxSDCYKsZIgk8Fllf8IF07EsBFnwj6uhm8NifZX sNfKTmOwOb3nUGbU0EpMQ4cqlBNjxbs0mGcenMKPj9Mz5XSmFwGD5oyJkcD2p7r1Ei0Q 5AJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ctT6tH8/o/oYY3dSovHk0E4c6NTf37dbE6p6AjvDQgI=; b=hfBL786QO+f7HG/wFEfVzmPXIxzPReqJUdKNFHiTbmkuo7Mv6KoIpzBu/xJLwjovaJ nMQYgz8XGP2qoH9Q7ltaeG55IlfKIS8IN329iBIELA75YVEvcIkTpfnW3tNLX4AZON5K u/q0ZCx1NRXo6CBDYAQ8J7qTPJs3zH0GQm24DUY3hmkgCYo999YQe9h/DaZ0csFIyx+f kv2IXuOG/TzSNiMqH0UxIqpu15x7BSKbJny6lNloU6E9i+ANcvoz7IyyBDt1YCGZv+5Y PyLCX8Ur8y2YRgI/6ehhkYVLN1Ol9tIdNcVhQM6QGV/6UN7C4wNJiqVrl0lGcvTv0ce2 oJ0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=kkuBzdDm; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si12390312pgv.232.2018.03.07.21.02.10; Wed, 07 Mar 2018 21:02:25 -0800 (PST) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=kkuBzdDm; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965416AbeCHE7Y (ORCPT + 99 others); Wed, 7 Mar 2018 23:59:24 -0500 Received: from mail-co1nam03on0126.outbound.protection.outlook.com ([104.47.40.126]:14720 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965364AbeCHE7Q (ORCPT ); Wed, 7 Mar 2018 23:59:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ctT6tH8/o/oYY3dSovHk0E4c6NTf37dbE6p6AjvDQgI=; b=kkuBzdDmX4/xSiAB/Zqk9HL9JXk62ynLeL9y75R5sAM1leEkYPaNaHhwyg0g0XNt02oqQeyu9FMteuuf00E6Vzx0oBNrYBdNP9kCy4YI+N+l6Yiw4azaqeOeUDiaV3KDccSmaEa4+AckVHvrWOQNIqHztaP0Ok3C6qGELpI4TRI= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0999.namprd21.prod.outlook.com (52.132.133.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.7; Thu, 8 Mar 2018 04:59:12 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446%2]) with mapi id 15.20.0588.008; Thu, 8 Mar 2018 04:59:12 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: James Smart , Dick Kennedy , James Smart , "Martin K . Petersen" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 58/67] scsi: lpfc: Fix issues connecting with nvme initiator Thread-Topic: [PATCH AUTOSEL for 4.14 58/67] scsi: lpfc: Fix issues connecting with nvme initiator Thread-Index: AQHTtpoGDMrO/KtkuE631hXQqhhpdg== Date: Thu, 8 Mar 2018 04:57:57 +0000 Message-ID: <20180308045641.7814-58-alexander.levin@microsoft.com> References: <20180308045641.7814-1-alexander.levin@microsoft.com> In-Reply-To: <20180308045641.7814-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0999;7:HC6PvvqyX1yMXd0dWVpE7JYp4ik736p0ud7IGE51mZV+TbxYrkvhp652cnaO4uRQDv0Pi+wKEGgJ0TFIhSzKB+n1Li/aZwnsLyqgIee2U2hobkl09bOFhaUC6INas+zNIkoCXqS8AklfruwryojQ11i3xd220RpELqLVKHG6xFouX7SIP/We5nsTuIrVKINZdNnCW+6JmGYg9NDxwDDL2xhG8uO3A7dQZxVJ99aJuwk/mP73nEwv7ZgFpoLFMlNn;20:5Zqti5EtEzNLZuu/dZjs0s037ThMH16+hLEE29wgt/9Tp/gzJYm+JwVQnXFasr2U6TcXlpMq8ZuVqfYCUsrHMqVRpTQUAoB4sp19OgPz2lt9rxoin1xGAxL+xVmAYoo6DmGv0EfKT2nCCTAuquC3kqJXTMh1HfTtrBunxmJ8LlY= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 04a6e941-b419-4557-a0e6-08d584b1556e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0999; x-ms-traffictypediagnostic: DM5PR2101MB0999: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158)(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231220)(944501244)(52105095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0999;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0999; x-forefront-prvs: 060503E79B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39860400002)(39380400002)(376002)(396003)(346002)(189003)(199004)(72206003)(3846002)(106356001)(8676002)(6116002)(1076002)(6512007)(14454004)(81156014)(66066001)(2906002)(3660700001)(478600001)(10290500003)(8936002)(6486002)(305945005)(7736002)(36756003)(2900100001)(81166006)(4326008)(25786009)(6436002)(5250100002)(105586002)(54906003)(22452003)(76176011)(5660300001)(10090500001)(110136005)(316002)(39060400002)(6506007)(86362001)(186003)(2950100002)(97736004)(3280700002)(102836004)(99286004)(107886003)(68736007)(86612001)(53936002)(26005)(6666003)(2501003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0999;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 2FwghPNcb414jHZ/iOiO0Q8thqQfBuNBJOOgamPuWDIAc2dxmZRdAC25cUQja5Qn9UJ3eIgeZT3ZP3LkX+E2rnUsiym/MreOSg+tx4yKivjYVIH/ofhxs23v1LUlXFyzDJsXqQezGyDR/1Tqr2vXc6Pfgoh2FGS2WraNIvrgEUjxoa2wLydxhD5BzerTI/oM3frWUCse8dSwCEIOSN1/mZAUg5iixIj2+q3mpRV398QfRlM2xkVn8OT6w8Dgz0anD5hb3HtJSoAkKPksfNdBiDd0J/mxTBTTVM6A9JVb4JLDbyGjo0ORlab2GfBH0VNYPYLfo7zhO4DlWFhht7lvqw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04a6e941-b419-4557-a0e6-08d584b1556e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2018 04:57:57.6120 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0999 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/scsi/lpfc/lpfc_nportdisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_np= ortdisc.c index 678bfdd53eb2..d489f6827cc1 100644 --- 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_vport *vport= , ndlp->nlp_rpi, ndlp->nlp_state, ndlp->nlp_flag); memset(&stat, 0, sizeof(struct ls_rjt)); - stat.un.b.lsRjtRsnCode =3D LSRJT_UNABLE_TPC; - stat.un.b.lsRjtRsnCodeExp =3D LSEXP_CMD_IN_PROGRESS; + stat.un.b.lsRjtRsnCode =3D LSRJT_LOGICAL_BSY; + stat.un.b.lsRjtRsnCodeExp =3D LSEXP_NOTHING_MORE; lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, NULL); return ndlp->nlp_state; --=20 2.14.1