Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2725639imj; Mon, 11 Feb 2019 07:33:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IYWDx/jlmT8Un9ea2wazCWvjzYfP9kyxzpIeTm44nIbRyWvzvcRWcT94eXktYXQy4dJKEOI X-Received: by 2002:a17:902:243:: with SMTP id 61mr22670772plc.249.1549899227230; Mon, 11 Feb 2019 07:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549899227; cv=none; d=google.com; s=arc-20160816; b=ptezWa93+POf2hNUDs9XKMbVymx9A1uwvg5RLpCiz9mbtgaPnqHml6BOXX2A/oY8GN 72jqCAkpsGbtFixtDsmuZ44V/L9SrxcSmCNO+qVp1D36vB7zP9t7e9PCEeGO9A/h3WnZ ZGrcY3fJPeWzDQnb5ES/WxMyjFBZYwUx8aERhvuBujyLwLnRl6fJZ0v3uQ9nnFGsgGK2 WR4wo8CK8JjtvLiFFSetq+rP3Rr8oSE0a113COSoDxjcg0unTTgixYoUJmf04ghZo1qx h9LQTMFen8+w5KDx9HKG+QHQZmZAwxcoZfppMclQXWxwigc5wz4ZsGnZPRjsxC6qPwZF Bg1A== 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=A9Z7azWJBjhamQv+bXWwRV16ys6wjggkw+xRNqEnyhc=; b=JouVoAQWP2q7tmWrism8qFH7qFI2kaVNX+pj5A91N4flbktl7CunI1i4vKP2q/X+Eo ZimPY9vd2xfVJI6kZdC4ImhBsx7f+qWTMKO0Vvr9AF68yF9LVkNh93T9XuQbFxo6+734 sWFxgbbGp6phLiyFMpGsHD0lSiQRQQHig/Y+WgAY1HIT/fCvRK0XUso6nD//98HFFMEo Ee3iRZGKjkhh1O7RbB3dZLj655N+u1q5fg5UJc8eLAnQYBACIXRlRpJ63VUAwqOEvZKZ g9ddt0PbODxheFalbylyr9c4dWZgp/xJtKVvedRl+EwFxTUSvt2jYlhT4qE6uQF9dwhn kACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0BJdu8UK; 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 f33si9849302pgl.437.2019.02.11.07.33.30; Mon, 11 Feb 2019 07:33:47 -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=0BJdu8UK; 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 S1730923AbfBKPc0 (ORCPT + 99 others); Mon, 11 Feb 2019 10:32:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:41742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388380AbfBKOyx (ORCPT ); Mon, 11 Feb 2019 09:54:53 -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 24FC920700; Mon, 11 Feb 2019 14:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896892; bh=G85qHwDLfArJWdZYSDFofrcHveX3FiSqHJT4A/Weiig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0BJdu8UKp4cS/b1WLGfjuKhunnqmHln6LVGNlPvusDMLfWhMM6li7bxmhuCN+ScJ0 fWpPuNiZD8uzF8niZ3ic2H/Y+oEMCndQEky9InJ4m8R5VZxnbXwexHMymJQY2G+G7N kg2BKXSIHqnlMwOZnSb2q795GRAuMr0dBYbW7r8A= 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 008/205] scsi: lpfc: Correct LCB RJT handling Date: Mon, 11 Feb 2019 15:16:46 +0100 Message-Id: <20190211141827.724556131@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@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.14-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 91783dbdf10c..fffe8a643e25 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -5696,6 +5696,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