Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2885857rwb; Mon, 15 Aug 2022 13:18:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oreH8RVUqZ/v6I9xmn4EjRToI8mrk10cebh7Kd36QqaBs/Wf5yFOx6polxJdXMtpnfRc/ X-Received: by 2002:a17:907:2808:b0:731:6553:fc10 with SMTP id eb8-20020a170907280800b007316553fc10mr11349489ejc.753.1660594708661; Mon, 15 Aug 2022 13:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594708; cv=none; d=google.com; s=arc-20160816; b=XAh72xwcIeGnV4cP+7inmZp1Z8FEZmItC3OxdgEp/QGlzuj69CG3mG4RVj4Zs7qrhj vZV4OthuMA5rkOLAx7MfhsFHUrMz1O/UCTosvgw5DMmV1FaJVwHOXpXAvm0ZF2Z00TYR YTE5fFB/618M7gy08qqXk+WCPlp22hwCahJO30C8lvrS2tEwzNYPn+pu1R+5fmhwZjuP xbJIWhHwFEDnvb0YF7IuKVIqRym4nbXM3Gl8h+KVVttzrq771Q+lMxuBK1f53YEz+kde 1lg6f2rd5xnNsWeB7UXgrYbXXe0O/ELQgXxUUtt8ZSG/7G6TLddql/BfIM4pFJMTPB8R hpRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a46j3Ehg8IJZY1uKle0E2SGwJKkd6K8oEHt6Gx9uAOA=; b=LbuNC2+Vas99qBzmvQfBSCatr/Ko+mDSxb0P+4Fv6Y01sp544F1tMSY+9A/l6Gmty+ EGZwUtUnisS9yPyBEgyZLk5xjVxrsbFx94ljAXP+RVy63UANLGV1uJcP6Mw2W5F2RjAW 0s1lihZ1bQEHQxCZpegTG+sFLQmPyQm90dMObiDAHRQTQxiJBina9Uh34zODISmhbzod dJThn2wTDITTqnNUUepfPawL4draFI/xULtDRWI6B9qI+F4TQNtn4LaIJwxs+7b8eikD D3yLz11PYItIISnqQFy9ML7ltaHS0eipM6bDyoFJO+gUAPeM9UKPi/7SLsNcvdwmmSfE fJ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ji2ocTmX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd12-20020a170907628c00b00732fa9d3df0si8386048ejc.795.2022.08.15.13.18.02; Mon, 15 Aug 2022 13:18:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ji2ocTmX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343751AbiHOTM4 (ORCPT + 99 others); Mon, 15 Aug 2022 15:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343597AbiHOTJH (ORCPT ); Mon, 15 Aug 2022 15:09:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B83440BDD; Mon, 15 Aug 2022 11:35:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9A17460FB8; Mon, 15 Aug 2022 18:35:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8692FC433C1; Mon, 15 Aug 2022 18:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588556; bh=hTRS1tqejUoIqcG1ti54Lman6PjQTp4st0trKhr/PfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ji2ocTmXyjsK6i4uYsRXOtTdo/zUkMY8PZCzXDrMkztOfXbZM9i2z1cwL+amL+jtQ qNXcLKTT6AU9hOyv8+Fpdhav83MDoCNCdimiXCOS5EpGFcCLUmjvD0mtQGG+8Je08w ef+rc7Jg4tf4N0p5oB+S0D1FxN7JuQJwlDcUxpQI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Quinn Tran , Nilesh Javali , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.15 424/779] scsi: qla2xxx: edif: Fix no logout on delete for N2N Date: Mon, 15 Aug 2022 20:01:08 +0200 Message-Id: <20220815180355.383340875@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quinn Tran [ Upstream commit ec538eb838f334453b10e7e9b260f0c358018a37 ] The driver failed to send implicit logout on session delete. For edif, this failed to flush any lingering SA index in FW. Set a flag to turn on implicit logout early in the session recovery to make sure the logout will go out in case of error. Link: https://lore.kernel.org/r/20220608115849.16693-8-njavali@marvell.com Fixes: 4de067e5df12 ("scsi: qla2xxx: edif: Add N2N support for EDIF") Reviewed-by: Himanshu Madhani Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla2xxx/qla_iocb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 46c879923da1..42ce4e1fe744 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -2882,6 +2882,9 @@ static void qla2x00_els_dcmd2_sp_done(srb_t *sp, int res) sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name); fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE); + /* For edif, set logout on delete to ensure any residual key from FW is flushed.*/ + fcport->logout_on_delete = 1; + fcport->chip_reset = vha->hw->base_qpair->chip_reset; if (sp->flags & SRB_WAKEUP_ON_COMP) complete(&lio->u.els_plogi.comp); -- 2.35.1