Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2918274rwb; Mon, 15 Aug 2022 14:02:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6czkdPhY1hq2YWSfZfwsEDke6cfj4ajZRB00IFEE9WbxoPStpQ9IMxjmaqdJtNSJ1iN6IC X-Received: by 2002:a17:902:ef93:b0:170:c9d6:a06b with SMTP id iz19-20020a170902ef9300b00170c9d6a06bmr19234637plb.101.1660597378265; Mon, 15 Aug 2022 14:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597378; cv=none; d=google.com; s=arc-20160816; b=uqBa8ewhnDq/hXXoynzk5Bwef6gyNxSDaBc/9Sn8wH0mqy7xmgFed8oj1zQ/5Gexv7 165hxe2xjoB0Kdh59kWYng8hBqZD2cDOfa8Mril6Pr4i9KXH6lrra1CM6vcla0UIm/Is wgQLip0vOp24o3iT8EGSnIGG2PoIJ1vpabjnL0UjlEAh+mfS1OpxlECKX6RMqxvjK3hk FOE3/x/Sne5MiRAB2wD0dgvO1KSjoPfozPDf1DFrsw6pwRSbBCqm7alIyWKerESmRy9N nj0SSxGgERiEgl/RiyW0Gg/gTryJpmS5gnDjgGsnXAzJzY+a0LBIVhVkhazYD1lLfrIT LrXg== 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=/GsyiO5/8CrBs4ANc2hXXZe1MWtTo0ZPf/9kZOOS8Pg=; b=z7JIB2CX5HCu2vXD80aAsMSdxGIuNzeUy44yyDBHTADmcLaSGuN9RMN9ZpIMg/0XcG 0WP0PpyVnkaTpXFkpgI6lrx38vgL8a9hcBf8kFDBicZBCRR9i+TEVI9JE99VKONGsmSq pEAsDCfSVXMC55fbwV3Kq6spfGhy6o9jj7Ife74aRr0QGjobk6nQWv6mwT0fQmbgPoCp of6XnyJMpvi/kBN+U3ENJHmnJhgEj84hK3USqgEBqbm7xOHfnAsoSgMv4aS5UIqgZxBe Gsb70+d66EUWCyhGEpdDsZoLQtxXPLWNRqgS41Jgi0dT2lk+ELF2KMFUtHSdZs5A+1u7 rLWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WeWwiSI1; 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 q24-20020a63f958000000b0041bc0b2cf83si11379786pgk.267.2022.08.15.14.02.45; Mon, 15 Aug 2022 14:02:58 -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=WeWwiSI1; 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 S1343680AbiHOTKA (ORCPT + 99 others); Mon, 15 Aug 2022 15:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343554AbiHOTGh (ORCPT ); Mon, 15 Aug 2022 15:06:37 -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 8DD664E87B; Mon, 15 Aug 2022 11:34:59 -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 A3579610AA; Mon, 15 Aug 2022 18:34:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4889C433D6; Mon, 15 Aug 2022 18:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588498; bh=VYd2+ukN06xBcoLLYYMIChMdyu1WQeTPutYHfew0D6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WeWwiSI1GN3THRh3LQGAnVPH0z6mRmP//fSkYi5FzIR9CwmK39FbKDzXSGFg33JDQ lCVhKHjWk7ZE/QD2m8jKEwW5IFl5lDz93F0H1/DMCbD2fe4xyt+Wn9LJjmHP8lKbgn kQqRH1Huavk7zVziRG60AxzU7xGm4F7HgrMcs5Ko= 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 421/779] scsi: qla2xxx: edif: Fix no login after app start Date: Mon, 15 Aug 2022 20:01:05 +0200 Message-Id: <20220815180355.256894426@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 24c796098f5395477f7f7ebf8e24f3f08a139f71 ] The scenario is this: User loaded driver but has not started authentication app. All sessions to secure device will exhaust all login attempts, fail, and in stay in deleted state. Then some time later the app is started. The driver will replenish the login retry count, trigger delete to prepare for secure login. After deletion, relogin is triggered. For the session that is already deleted, the delete trigger is a no-op. If none of the sessions trigger a relogin, no progress is made. Add a relogin trigger. Link: https://lore.kernel.org/r/20220608115849.16693-5-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 | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qla2xxx/qla_edif.c b/drivers/scsi/qla2xxx/qla_edif.c index f7953ce17678..c0971888a0a1 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -544,6 +544,7 @@ qla_edif_app_start(scsi_qla_host_t *vha, struct bsg_job *bsg_job) qlt_schedule_sess_for_deletion(fcport); qla_edif_sa_ctl_init(vha, fcport); } + set_bit(RELOGIN_NEEDED, &vha->dpc_flags); } if (vha->pur_cinfo.enode_flags != ENODE_ACTIVE) { -- 2.35.1