Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3030852rwb; Mon, 15 Aug 2022 16:30:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KelZE7AZwfPKJVh2rumwp5yybrdJmD2MsZua5djf5qYVhqJLMEQLh88MGUDsi/kqaFp4D X-Received: by 2002:a17:902:f806:b0:172:55a6:bd25 with SMTP id ix6-20020a170902f80600b0017255a6bd25mr15234408plb.61.1660605804044; Mon, 15 Aug 2022 16:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605804; cv=none; d=google.com; s=arc-20160816; b=VIrYagpxYGm8jegfe5NUEVGxsdMlZmDY8bVnhUaGVo0O1p2SV4Ig1S/dgmsTzMBlhZ 53cB2rIEKcgjKAGGBXPQX+tKa/lwBZdOSA+0icq7je0RbkL+bdkEK+7CgvL2WqVgYPCH NxTbPtUaIG0YhhfUP9GZZQUCWSo7WRKEsFJhnlFHQVSPDUF5/JryIdUvVzAVOzWoF6Di Th4gut/t5qRbG3ket0YzYw7WG/SU/E6W+0WaBhM2gD1cFFI3H9daT8sXW3FqzmlIOeN0 +m+Z2ZMxiYPS9enCeoEeVTA9vyTNBgVpyRuRyEsPdlB/zIFyW8lw+5tHXrukNsgzIdMa 9uFA== 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=/aKTO2pWfd2f6suSWU+zkMzYCKexllvp6EsAFtQx1C4=; b=a7N5MjIoiBhGkQ+hfRfSnv4xS/1HM5S2NDBn9Mmu5iLUsH0MfHT/YzyozahbBJH9GP JkxCLo1gHvnuvfaES49axtf9gAGQJ1rUb93/Na0Be/oJ1ibrlzvOu7ZCn0yNKG1Pit27 hzx5CytME2CufupiwVBOv4FgzAeOo1Cl9NpIn+gHTvKkd9jK6S5oYqT31TJOUGZJwmhT 5KNTP3ITI+CNCOroOFjWE4nLQdlXE0pRheSb3YO2SSZDVfKAe9nzLydcvS5oa14KlXy+ aNWAa/WZ7YKc3WMeO81mcYGsC527dsQcVHKe+5Vk6NKt5wi7Voq9Mzy2WtmfArsCccex 0LMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O5+WZVxp; 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 d1-20020a170902e14100b0016d5cfc6fd8si10207979pla.32.2022.08.15.16.23.12; Mon, 15 Aug 2022 16:23:24 -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=O5+WZVxp; 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 S1349177AbiHOVjq (ORCPT + 99 others); Mon, 15 Aug 2022 17:39:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349069AbiHOVgf (ORCPT ); Mon, 15 Aug 2022 17:36:35 -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 77882106; Mon, 15 Aug 2022 12:26:19 -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 17339610A1; Mon, 15 Aug 2022 19:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03484C433D6; Mon, 15 Aug 2022 19:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591578; bh=90CmysPOl4jxfz6UiU92ZjhnuJQTM2s168P8efW9v3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O5+WZVxpu0cQEikcLu4c5RLS9jTrDgcxbgpi6o+1YASJmfwVwChjh72qNUthcu1OE b8+r8XF6BEAX/pWjoV1IbLq7P61QgVUTJ31QPCTVh/gKhLPBteJv8266/jYchFZSyw xfgMIfa2fK7GxycPhfj2Y3SbokCdaO0T6nOu3V1k= 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 0576/1095] scsi: qla2xxx: edif: Fix no login after app start Date: Mon, 15 Aug 2022 19:59:35 +0200 Message-Id: <20220815180453.398646937@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 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 208a16cb54f0..9020cc3c61df 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