Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3087089rwb; Mon, 15 Aug 2022 17:48:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7GGiaJLub/+h6vg40DkaTkwH/KI9dfErOlKDD/va3DAYdyC3bpzxOV9i7ttZEc4sUM4bvv X-Received: by 2002:a17:907:9620:b0:730:d5f4:d448 with SMTP id gb32-20020a170907962000b00730d5f4d448mr11760128ejc.45.1660610934481; Mon, 15 Aug 2022 17:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610934; cv=none; d=google.com; s=arc-20160816; b=LaaQ6EQTwUadZLmh0VqdpX53hkYxZpVeqeTYitpcgafb37gulAZFrwmFmumwm58HRP mskQ5kkQc5Im4rR8BVffB5MYlUGthAv/YN3ZrdDf3EfcVCXvuZpePr94vgGiaLuP6dSG 3AXIA3TVOCfz04qPnycUssTlRy5AbqpkEAQPGQ8kl1x/HBAmIBwTf+Zgr/ylr6sEU21e 8LUIhzX8bKBehTkWAeeVe+pGwlOUS14y/1d3Xm1HTw3b/dNujQeiA6fiIQVMiQvp8yiq DrM5ruoky2nur6polLDuvT1q1pVlvStupnS9BW3uUO4mmlYzPASyn2AcsYBU3ot3hkc1 0G9A== 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=TRwB6MbiHe3MLk5HXJRqZSWQ3L5P7Iv3LINbWcfSrgE=; b=SsxWVhZSXYZ66xABMA2iP3ocFlz0mooQJDll56emAN8bRR7iHu59uJ4C1KzJo/+3WH HpzBijoDkG+NF46t3b7q/ZLEgFqsrgEQKzMqVVP+N8WFZTgGpUUk9Uj6jzScbw7GOTkN yY1bchvMNbRR6g6DcRcAPN4yXg9UCPgEjqSzDWV2/U4ltlQSIqTEnUoeCJZRpXCtfldS 92xnTRvPvYVpeWA683zqzjyq92HjT991Q5dn+bAPKsWGLtJJvKj3w4dGh15AfukMRqFk ROaDlxjmom/Cd2e5djCpexqStwhpE8hEGle2fj+KjuSJ44qKjPOEHs58CcB6xUIKdPH/ pX8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KovIy5ML; 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 hd42-20020a17090796aa00b007317ee0ae03si9564283ejc.818.2022.08.15.17.48.29; Mon, 15 Aug 2022 17:48:54 -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=KovIy5ML; 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 S1356908AbiHPAMg (ORCPT + 99 others); Mon, 15 Aug 2022 20:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356814AbiHPADF (ORCPT ); Mon, 15 Aug 2022 20:03:05 -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 E19174BD29; Mon, 15 Aug 2022 13:24:30 -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 37900B8119C; Mon, 15 Aug 2022 20:24:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 809E6C433C1; Mon, 15 Aug 2022 20:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595068; bh=EPW4q5OqlA84zhlxWLppUhNoT3HWaLLIiRqnMVFYi/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KovIy5MLQuLvFUZTTjBjVY/0h+Yo0ew6z4NvHcBbga0dCaPB7pr6+uhetf7+vwzs4 FkCzepMx9fEhNTas5Nh/YzexHD/NwSFIf+XPdIi17fvpu9+VSg6Pm+F/lH5Xmls3iw WepCz2Djx/wGhaJDXY/ZMXE9SKbnrmvEUfO5ymfc= 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.19 0619/1157] scsi: qla2xxx: edif: Reduce disruption due to multiple app start Date: Mon, 15 Aug 2022 19:59:35 +0200 Message-Id: <20220815180504.414493047@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 f9f4c4a6afcc..4523ae745e55 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -510,8 +510,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)) { @@ -578,6 +577,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