Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2648575imj; Mon, 11 Feb 2019 06:27:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IbRvmufDMxAJ4FRBQx4t5dHbF01P3biG3COyN0liKhHFAvy0HVpWNB9JBecbtPJQ6TjFuZ9 X-Received: by 2002:a62:3ac8:: with SMTP id v69mr14746524pfj.150.1549895220039; Mon, 11 Feb 2019 06:27:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895220; cv=none; d=google.com; s=arc-20160816; b=mA6DgZTwAHEVasN2URdCAznatJ+7i/6g7I/yLBK0gNxExZ9zPxvUaGPdwKlsB2O/T9 la+RKUkdsqXq+2UVEfgndAOj5K8fHwaFRyj7afNV9I7IHUKoNbqb/IqGqJqqGegomiBv V0iUxiJs0y7NfsVS3CJT0XBdxcjN/CTFjij2WubdPpjaraWLNxhYVBOiUn6gj/XaHt6K yTOfBHGa/JS7zZBVMn8F2lbfnsqsSFFPtUtjiX2fDq6cXkCgcmjV1zEnXyLkzMcPhEVz //M1/OwoqXi5WQZGILu0xPdVUDlo0/dqiwhzV7YuyjTDF0M/sgbDyz2mFyf+WL+hl8OH uHsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Rr994itJyyyrTOU8Oj1WNv1qBDdacv2CRq8K1/cD/D0=; b=k1DB9SM+7yIJogEEPlF/cv57d+7q/3E2ne49fy1AYTrdlyQPNcX2eGDT0Q17zoRQP9 u+1BR8/ujBHJ7wqlOjNbBO7YhK3faCPQbqPUQddQSs1wTDFaYBZGslBCF4r76feX2yAh VqGAqEu/mQiM+dTBSdyo72D+Y1ZyvtW0A3+m+nXDuHjO56qFCBXp++TQcMerlsimsUcZ XnTd6RRGytcAxCwe/HGwKtrYUDuodWe+HRJ3QJu0xTBMMusJBrWD+8QF+LuCR/egud/9 clkGr7mMGKQhvrkGPpJERRmgcvg3nwz6gQ48PzF0sdu+cJodd6oH9tOue/0py0o3iQti VZMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ckZd4WEi; 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 f7si9140385pgo.295.2019.02.11.06.26.43; Mon, 11 Feb 2019 06:27:00 -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=@kernel.org header.s=default header.b=ckZd4WEi; 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 S1728881AbfBKOWy (ORCPT + 99 others); Mon, 11 Feb 2019 09:22:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:55844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbfBKOWw (ORCPT ); Mon, 11 Feb 2019 09:22:52 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AE8DB20844; Mon, 11 Feb 2019 14:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894971; bh=fQmhBZQkgFnXW1rdCVaL/A5fZ0NHGqMye8gBu6bAuEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ckZd4WEioCJzlK8ILPbQpQdG8fwfjjf0cSnOL7A8tMBwUVrQe3rXvBwO2edgFzR96 /KQPCbxicQkNdc6xtK8qYjJuEo/NJEGktL2N3dEYkm3CyubQojWp4I33RPf0CjwWTQ 0DzzqSv4gbht5sKe+fe0boKH2MXufHD0ZnISoyHA= 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.20 019/352] scsi: lpfc: Correct LCB RJT handling Date: Mon, 11 Feb 2019 15:14:06 +0100 Message-Id: <20190211141847.595142172@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit b114d9009d386276bfc3352289fc235781ae3353 ] When LCB's are rejected, if beaconing was already in progress, the Reason Code Explanation was not being set. Should have been set to command in progress. 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_els.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index f1c1faa74b46..96e2f542734a 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -5701,6 +5701,9 @@ error: stat = (struct ls_rjt *)(pcmd + sizeof(uint32_t)); stat->un.b.lsRjtRsnCode = LSRJT_UNABLE_TPC; + if (shdr_add_status == ADD_STATUS_OPERATION_ALREADY_ACTIVE) + stat->un.b.lsRjtRsnCodeExp = LSEXP_CMD_IN_PROGRESS; + elsiocb->iocb_cmpl = lpfc_cmpl_els_rsp; phba->fc_stat.elsXmitLSRJT++; rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, elsiocb, 0); -- 2.19.1