Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2927413rwb; Mon, 15 Aug 2022 14:12:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5A0BkxOtc7apGlM1YMbHGe1qJzeNKw8uZJ7gcT/rmDjCBYKVGwvVci/YI+4V0vz75x7Jtu X-Received: by 2002:a17:902:d4d2:b0:16e:fd2b:d0e0 with SMTP id o18-20020a170902d4d200b0016efd2bd0e0mr18377700plg.165.1660597971062; Mon, 15 Aug 2022 14:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597971; cv=none; d=google.com; s=arc-20160816; b=0HHM6ACYJws31/ykdEUxt0AZ47Lfmzn6lSqnpCkR+Xcb0SSrH5Pa2jA+iQTpJ89I9C Vx6f75T83eooHTR/ba5x3xffyLUr3nrjTEA++lMjJUxdSLaLODFXmlMflwAtHMWw0XN7 iWDYbIYA993OPZpN+TnuelD+hIlSJloHRnXXKqt/nsHYnJ9NbG8pcF83DOv1eHTFkVgL sbPqA7qI026sF3qi5FnK+pr4eBVpWbaDYUtwkfLC4AQV3KCDGYdF7dsTzoKi39VlN4Ld 33Z/9yXRTozy5xXLdT1mV5RzMX5+WModxFUJGZQ/cmwnAKvaGNtmA0j/eycTfbPUfciI kn4g== 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=x8JE+ST6Ay9FR6337JNKoApRVs6exsIBi8dhFMV7tiA=; b=j/DA8W9yVFSiP8TQDdnQ1yrQfSLKE8ylIodLiWYy2fjHfE5+rVKLDYU2BbPpBi93Wc lEPPpDWHnoBjcyXkH06sRRiliMbWa61T32pkBJDnPXQxq6kIyPKLokIuN2T5IjWUpw2H 9hdkXEcE08fvFLRl3L4mhQmFPymeFbCPN/0I0YLQdoytHBVP7SvLbBv5XvNNNB0Cg7g9 1cD8b1qDEYc+LxEcr1vxVYwYWSBdX7K4QGjt2SHl5ipEKdWYjjY3XFR16npUbOKAzgl5 tHqpdUrh6rhk0Dfpy2N7tGAYrbRjwV2IeSdO7UKpcBEgfnefdepwiS5XdVHpmkCswwKz igXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="iyhKuI/3"; 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 w23-20020a1709027b9700b0016d8a0c399dsi10205974pll.158.2022.08.15.14.12.39; Mon, 15 Aug 2022 14:12:51 -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="iyhKuI/3"; 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 S1343632AbiHOTJa (ORCPT + 99 others); Mon, 15 Aug 2022 15:09:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343508AbiHOTG3 (ORCPT ); Mon, 15 Aug 2022 15:06:29 -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 CDF364E86F; Mon, 15 Aug 2022 11:34:56 -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 6F026B81072; Mon, 15 Aug 2022 18:34:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3FE7C433D6; Mon, 15 Aug 2022 18:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588495; bh=TerHaN3ULsneVuFYUiA0zlYmlhU/YrtLSc3KhLzTd38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iyhKuI/3mNcREr5HbdX5gzDoYZnQvl8KWkGPaGU2cF2OwkMpnXM063rCl9RtOdutG mL2n4TwogcekqfEpErYuhhLlSSZLqQ56M5C4ueyOjK4a9XaoU4cMG2cGqkUsiYONCC AqMRX261IS3q5ZBaPfP82gFGy7P1hHhr5ZVPP2e8= 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 420/779] scsi: qla2xxx: edif: Reduce disruption due to multiple app start Date: Mon, 15 Aug 2022 20:01:04 +0200 Message-Id: <20220815180355.218496980@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 0dbfce5255fe8d069a1a3b712a25b263264cfa58 ] Multiple app start can trigger a session bounce. Make driver skip over session teardown if app start is seen more than once. Link: https://lore.kernel.org/r/20220608115849.16693-4-njavali@marvell.com Fixes: 7ebb336e45ef ("scsi: qla2xxx: edif: Add start + stop bsgs") 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_edif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_edif.c b/drivers/scsi/qla2xxx/qla_edif.c index 69f8d16effa6..f7953ce17678 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -486,8 +486,7 @@ qla_edif_app_start(scsi_qla_host_t *vha, struct bsg_job *bsg_job) /* mark doorbell as active since an app is now present */ vha->e_dbell.db_flags |= EDB_ACTIVE; } else { - ql_dbg(ql_dbg_edif, vha, 0x911e, "%s doorbell already active\n", - __func__); + goto out; } if (N2N_TOPO(vha->hw)) { @@ -555,6 +554,7 @@ qla_edif_app_start(scsi_qla_host_t *vha, struct bsg_job *bsg_job) __func__); } +out: appreply.host_support_edif = vha->hw->flags.edif_enabled; appreply.edif_enode_active = vha->pur_cinfo.enode_flags; appreply.edif_edb_active = vha->e_dbell.db_flags; -- 2.35.1