Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3083328rwb; Mon, 15 Aug 2022 17:43:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6cbfcQjt6tASdzr/pvXKMFwnSm9Bm42XimspFGmaSBdDjHGkI6LpWhZHsn5Dw7eCXmBGBv X-Received: by 2002:a17:906:9b09:b0:730:c38c:e11c with SMTP id eo9-20020a1709069b0900b00730c38ce11cmr11554445ejc.684.1660610594311; Mon, 15 Aug 2022 17:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610594; cv=none; d=google.com; s=arc-20160816; b=UwUlyHlalsLU17D5+Cyn926f796P5AcL6OJo4sQRnLwYFigOgBWB7iY7vG987pNjSV /NkORJor1JAfLNPy1C/prx2vY0+7a/INIxt5j4slrGNnS1Z78LCCxXOR6wNR/xu5rieo 6ukfanJoakgO5V0njxKvq2VHbatB2/sS473eb2Lkg8ldal+MuP46bsoFrA/5LSa9teqi LSASvLeNld/nr7zRtqxf5YkrjJ9jxeZMhijinoZ8etWeb/OHmvYNIGAaWDo/R5iZHDEn K/i78qk4D1dGBKLi18dUn09/ZToQWwK9BMlF+FZTso8JSp48IoZB5cfvQyA4YjWFYzHQ /CvQ== 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=0JmTRxpmaeFN+pYdQxiiZHrugFbtCribuF1KW8k6e7jirV3b+lbI4uXzAEKmcW1tjK 4AUtsTYpgjRF0+kKHBmKLyoul/Uw7xvMYo3JacdMmiQxfiw1BQ7ZGD6w5oA1aJT2s7/l GpFjNIeKtbhIa5xZm//DClm4S6ZJ1LvK705mmoEc2z05tGG70nKCdH8RY/kz2D/i5edM xgeH1DGWMAGFKj9wiY6gnMykVDKzaja8KZQ5E37qc5aKGnGnwZxXGm3Bj8ec4KvPxbOS 6Pdv2kc5YmZNcrDQvXhoaz9ngfqxVf8OndcSbpBqFWcemvoAsEXKQYa6QP65SAusgA6R Br1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L1kQjW6O; 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 q28-20020a50c35c000000b0043cd18d34e1si7706056edb.177.2022.08.15.17.42.49; Mon, 15 Aug 2022 17:43:14 -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=L1kQjW6O; 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 S1348826AbiHOVhm (ORCPT + 99 others); Mon, 15 Aug 2022 17:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348889AbiHOVgC (ORCPT ); Mon, 15 Aug 2022 17:36:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71EAAE0F3; Mon, 15 Aug 2022 12:25:23 -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 ams.source.kernel.org (Postfix) with ESMTPS id A2ECCB810C6; Mon, 15 Aug 2022 19:25:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E1D1C433D6; Mon, 15 Aug 2022 19:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591520; bh=hTRS1tqejUoIqcG1ti54Lman6PjQTp4st0trKhr/PfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L1kQjW6Oi/3zaPzFBQs1OUiia+mY3ZEsyFIrWOEKDw7HB2oyggFG/ba27s1edUcqT AdWuG0Duo0N0chpxhg9Sc/pnirTPcKIrlumA00ildbB+lvKKxJIzrsd40fMxeDkv50 kI4BUC8iZQe4EjicfjUwHLECUVC39gvOudFrx8RE= 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.18 0579/1095] scsi: qla2xxx: edif: Fix no logout on delete for N2N Date: Mon, 15 Aug 2022 19:59:38 +0200 Message-Id: <20220815180453.530247827@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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