Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3261603rwb; Mon, 15 Aug 2022 22:36:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR47f0yN64swLh/FueY9XD8CB44X18za/0e7cziNE5MoQJM6120031e0OBMbIyiEV++zZhcE X-Received: by 2002:a17:907:3f98:b0:730:cfce:9c0f with SMTP id hr24-20020a1709073f9800b00730cfce9c0fmr12483661ejc.475.1660628210703; Mon, 15 Aug 2022 22:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660628210; cv=none; d=google.com; s=arc-20160816; b=aNo8l99jJ9odrvsRwJ06OFmwJSzoe+yMLeQXBqFlKWHeYQ4+/E4rpW7UhBBFlLtsIb 2F5SrxaRseiSpY+rNyskx3IwJld2pR9DoyhSMYOs/+G5ULdwFIXQvflNST5JiXnj0XxZ GnX6GCe3dJ0OejGP//bb8KilCE6hbbKBicUX3v01d5L0cLDUIYVn2Es3dztiD6MorIx6 zUSLHW8kcUx4PVWSzxRe0piF0ZxJXOHaNha0AKYbroYOLIbxRSxhgRc6RXDeztDi8G6p fwcLtosZP4edEMdxi1OBZAIHn2KhURCK7AI8SUOCt/bkSC7ptw1Of9HuAenVOoZZWHY4 PN+w== 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=HVdKjaOs+Ypa5jTYX5PUfkPAKmPg21IgtfudHVSb1p4=; b=yLZCgMCID73H1JoJx0gib3rqjcsJ6ZkHr99MVoPeOfeuXvrBPzHIVhEgsuJQXfnNqg wz5ZU8xpG11K6ANjWIvb6AGN+qQJN8UdM15JFF44mejsUtDkJs4FCDaBZU9lbTL9fqDJ 8NopgFISFD5e1nwWi5XljoI2D4ejN/l0z24OuPYpiiCAErTod+PoF4soIVMvPmHka85t ZFfCPVNJg8ri0o44v29jtRjWRDGrFaQsm4gn8P/tfUDwgS4JTKciuqtXchix0/umJvUx qP217iTTlmZOboawNb46gGNUbY0Y8PrCJiDyMl3uQUyfycWY5U9bu6YApOqkeuBUnz7b rF+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0JFBUQmr; 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 dm5-20020a170907948500b00738553043e5si4207935ejc.573.2022.08.15.22.36.25; Mon, 15 Aug 2022 22:36:50 -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=0JFBUQmr; 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 S230381AbiHPEeh (ORCPT + 99 others); Tue, 16 Aug 2022 00:34:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbiHPEd7 (ORCPT ); Tue, 16 Aug 2022 00:33:59 -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 BF02516C103; Mon, 15 Aug 2022 13:24:47 -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 50CDD61073; Mon, 15 Aug 2022 20:24:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59623C433D7; Mon, 15 Aug 2022 20:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595086; bh=IOOFlhgi7ETtUKqChafS8n6DPAcCN9kqNI9gMPOh32s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0JFBUQmrxljH9m5ZVJ3DI5cWHnBJCcRVZTTU3Kgl14h7zqAwChk1/ljeefhFWCiCa t+LgAjvjPNn7PllEhvjHSgaz+Mt7dCi6X5dqAVP8M+C/cappBlnAgk1ujelK92rty8 Vypszm+Z+ylQS0laIIxvN73MC0f0P9+CIu8Z1BhM= 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 0620/1157] scsi: qla2xxx: edif: Fix no login after app start Date: Mon, 15 Aug 2022 19:59:36 +0200 Message-Id: <20220815180504.455839846@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 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 4523ae745e55..c4bebbb17e92 100644 --- a/drivers/scsi/qla2xxx/qla_edif.c +++ b/drivers/scsi/qla2xxx/qla_edif.c @@ -567,6 +567,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