Received: by 10.213.65.68 with SMTP id h4csp301511imn; Fri, 23 Mar 2018 05:05:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELue2ZEs5bMAud708OpqSWwQyGPWdFsoVlAiWxsjRKsbL+GBCmTEf5TBkF3B+spJGZw71QOM X-Received: by 10.101.93.5 with SMTP id e5mr2887902pgr.247.1521806757437; Fri, 23 Mar 2018 05:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521806757; cv=none; d=google.com; s=arc-20160816; b=YZi6s4wXGjoO9uIlK1xtH+2Fit7qVQCX+jnYbEn+I9i/XtO3WVbBs3DaqcTeuHIGmm 9Un62tTjJn+rM+y5DQF7YKC/edLyma8gMcYud1T7svEIRcYrXH9AKaLuSt3wNSiV2UP2 gA8qCrdk/2Dr3kljugcnP2JFo30FjCavW58U7iUZoMcob4yZYh1kxQEHexdnKhCcha5N SUbsr1S561O6JlGGHzXdMxm3UU1iKgML5TDzAHW9Ad+E6LvAlJKn2QKDaPHzrhmBT4Tn jxieh0iPFfNBm04z/WCZT+R3MWV2E8LKKSfb5OW/O3MRNHoKqOENq8i29sqLyR/tg1E6 W1Ww== 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=jG8KSEf5h8hpmXI0ZcB41ceKpbEvWCplp4NZ1+6BDW8=; b=JYePXaksl0bOr7y/k5z9ZH2KP7CefuXlB36Tx8QDomnhiacR7mO3obz9eO/zijigS9 Iv6yAGkJbsCgQYMHIAed8lQyjSBmEepcAksKN7gu1MNVuU9SzfKkXCE6B7gBUVPJ5e1L /v6/2jjQazsQ878VYjeqfAwSinnkQ5Zgei6WEqS9c6UNCA/yqKON9/mguAz+MIxeWs0O Qz4gw7rqIV1XTrDhhKHX+TbISeKx5Xy1qwTpxqNe4uSf4Xsy9oTDDnvylJE7rIjk7fFg YJhXnTEeoCZJeEEn7kaNRNQqpEPt/rTpkH28wx/dZ0lHU8hW6Fy9bYb8gWzjnJ+gU0S4 +BTw== 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 bc5-v6si8186174plb.506.2018.03.23.05.05.42; Fri, 23 Mar 2018 05:05:57 -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 S1753599AbeCWMEL (ORCPT + 99 others); Fri, 23 Mar 2018 08:04:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36202 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753354AbeCWJ7f (ORCPT ); Fri, 23 Mar 2018 05:59:35 -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 BBB381363; Fri, 23 Mar 2018 09:59:34 +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.15 66/84] scsi: lpfc: Fix issues connecting with nvme initiator Date: Fri, 23 Mar 2018 10:54:20 +0100 Message-Id: <20180323095421.926616969@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323095411.913234798@linuxfoundation.org> References: <20180323095411.913234798@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.15-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;