Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3713436imu; Mon, 28 Jan 2019 09:29:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN7VdO/bIFZ5PjOaJQ+WsimKN9JuDbB49unLP1yNmWk3X3eAe2otlNmD++Y/8h0pyK7zFGdc X-Received: by 2002:a63:5c22:: with SMTP id q34mr20506035pgb.417.1548696554962; Mon, 28 Jan 2019 09:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696554; cv=none; d=google.com; s=arc-20160816; b=lAypizI41UI3eSxpYHQmkYXaTAa8ruS9NZSw7DJgxrgiPe+e2viWd5sQM93ZRjBDtw 4djqtglb9tk4Z09ZwE/EM1f5sEWmYTTzwezrRT7RkrJxN/N16R/E19+pdXfiVZTZWL5m ZqYjEsRYkcQz7MMTe1DXgq9NWTgVUFJyTpXYk+M5YdkyPS16/0yGGh2GJ7nClKwdjCK1 lWWDNEZ4bJ7BMn75lpa5Zfst3+dgv9TttlJgpRDC27jf2gTHGEeejDwTVZP+tWIf2Grr 3oYc2qSisVPk72UlEje45v1NwMsRs5zle6dkkEx7r2mJf4rcDj+nmDP+WDp6WzKXzr6w Jrjg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AVAikJFi5dUPKbcKgOZhm5tv/fYZv7c9qazp9JLmj04=; b=vDdXhw9a1bOjUDYT23bqFJ5QLi1cyivIp9UAz9X9fvDG4eZPDSg22Fv2KkIP1uDjkq /QPZGCiYgTn9lWayfeWJsDaoAsn/POQAt7Mp1iWk+OkyjlzGqEqq22EoO00i9SPQ8hgN J85cexrr3zajeGVdMZ8C/VuI01SS13fcLGFH0eYCXVBnwfpRHOh2WxPVYmdynn/Z50H7 moqmK3tdYhM+4q3u1iOpDxSj9toEZPodX/8Qf6n9X/fJbhLY4K8Os/j9CCN0ypMJsAg+ /IcaBKzFNBpJTMz+rZTpJj5qsS0biQvbC1kTorpx7Zwq4kVNh80KokrZI/U6+wCazov8 ZBjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JeFkcA0G; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si34923817plh.385.2019.01.28.09.28.59; Mon, 28 Jan 2019 09:29:14 -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=JeFkcA0G; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730727AbfA1QAL (ORCPT + 99 others); Mon, 28 Jan 2019 11:00:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:45396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727858AbfA1QAH (ORCPT ); Mon, 28 Jan 2019 11:00:07 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DAC622082E; Mon, 28 Jan 2019 16:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691206; bh=0b+ftrcyhJ+qbspBUsUHlUyWlM8+aCrpoLO6m9mfkwk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JeFkcA0G3ngP8Daqrfk1t8FTXEtNubtDqPJwd7MOyiANwcT93jKnm1Y3lv8y/QXAD p9VN5luLKeJY0gA/Od0Raval9SJYqVSERAWWEpI7Kb15SMMsXxElOa22SEFNbqD9Tz TH6o1+WGP48h8SRaorh9DwJK7bl/MdosZ+Bd4Xnw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: James Smart , Dick Kennedy , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 015/258] scsi: lpfc: Correct LCB RJT handling Date: Mon, 28 Jan 2019 10:55:21 -0500 Message-Id: <20190128155924.51521-15-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Smart [ 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 4dda969e947c..56a4f626349c 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -5701,6 +5701,9 @@ lpfc_els_lcb_rsp(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) 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