Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3540202rwi; Sun, 16 Oct 2022 13:02:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7zsWQWlP0auvv2SS2/RvFv4n2ziQuaShUgFdcbneD02IPIOtViLkMM0vANCukmTThNJ4+G X-Received: by 2002:a17:907:6e24:b0:791:905f:7881 with SMTP id sd36-20020a1709076e2400b00791905f7881mr2031018ejc.120.1665950534968; Sun, 16 Oct 2022 13:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665950534; cv=none; d=google.com; s=arc-20160816; b=aNZ2a9a916hv9GfYkEbVvqNHu3/rue6MH4fGPY6q9yTy667HqymvN7EoyekD2IHjuJ t47VMaP6uZS/NdA4vugwHR+SVRSsHfUNQoc4roFhD4oiePBf7kBccvmWyNEw8pgjaq1q HZelMxKSnp5DWv4QNjVqGyQWu6hSekVGBTO8q56M5YfpBsfln4Kq0tn49Cs7QZIbhG5O HMBkjDTS9RR0kMCIdytEgOu8de/FFpgWH0ZMulR6rLpIfnfUkABRZ+vf+e+MfN13GLs1 C+KNrJVCSLcN1rYtjO8E2y5qXbTUzQtMj0wElWn0Ctq431/G3X4h3BhOYihf26ScVcwI H80A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=foDGu4NHcW91iYfcaWu3Vz80mMc4ZlAoT3tAaD2tlf0=; b=zahpEUabhJT7HLMvwZNYm73oyEL1/bI04K6Zzs9ogR9ehuSe9ouNRusZ9Es1sK5En8 67NwWMoSNljSNvZDt30GA5OLCLAK3iECQG24/yS9MdwZbABOwSCzi/eA0h1HxFI8RMc7 DDno3lhSEusvxxYG18K4ESHg/PcG1hWHE+TmmIxwC6wmDVChMW+eR0BaDGEuGKkYqqKB wcr262kwETPnHtk0NM7x7JkmRo0APw7O3AfL8RfPnULTs1jZ56MYl31U9qP0ilVMuS9B A0Nsh0SMGHUxr0vmo7TTbXK1OT26VJxGxgTUEjfkBdD4QbF53uYxfsPVVkvgu9v4SggM +TjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NDhDOp6b; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a170906165300b0077c5ec87ec2si4510116ejd.297.2022.10.16.13.01.47; Sun, 16 Oct 2022 13:02:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@kernel.org header.s=k20201202 header.b=NDhDOp6b; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229464AbiJPSvG (ORCPT + 99 others); Sun, 16 Oct 2022 14:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiJPSvF (ORCPT ); Sun, 16 Oct 2022 14:51:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074FD31369 for ; Sun, 16 Oct 2022 11:51:04 -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 AB8BEB80D2F for ; Sun, 16 Oct 2022 18:51:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12D1AC433C1; Sun, 16 Oct 2022 18:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665946261; bh=R+pbfQYQg9KAfOO2B8frGp5NhKlHbUIMaSxfrz1yx0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NDhDOp6b7PLwVOCweC+A4/GyPe5HMGpwCiHt66lNlIhO3RZczlWzx1byXbZLUaGMP pwUtmtAcgbfO/p9hotTa8MYS7/GGiodTH4imaxnJs6OCkRZd1dx0U4glOtxFT3oxuK 3IPgn5XCCpyLX6iqOLPuEpNPBxa7lquyiUCqpo4/czAUalz7uqF2DfCcu7p8362ixs ZMzEFSYl0a1HzPQvFoakSkjd2WC2NGOxNITCvb7QGDm71LVhurCqVLaLlPG1ddY+y/ C5O17luLIXbzI1hkFINHd6Ol12NZPH4Fdbz8ETH7bkWD5gl/kxa/MOlMezcyi/6TxK U/LAEPDezmRag== From: trondmy@kernel.org To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH 3/3] NFSv4.1: We must always send RECLAIM_COMPLETE after a reboot Date: Sun, 16 Oct 2022 14:44:33 -0400 Message-Id: <20221016184433.31213-3-trondmy@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221016184433.31213-2-trondmy@kernel.org> References: <20221016184433.31213-1-trondmy@kernel.org> <20221016184433.31213-2-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 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 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-nfs@vger.kernel.org From: Trond Myklebust Currently, we are only guaranteed to send RECLAIM_COMPLETE if we have open state to recover. Fix the client to always send RECLAIM_COMPLETE after setting up the lease. Fixes: fce5c838e133 ("nfs41: RECLAIM_COMPLETE functionality") Signed-off-by: Trond Myklebust --- fs/nfs/nfs4state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 0b6bd6336c98..a629d7db9420 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -1787,6 +1787,7 @@ static void nfs4_state_mark_reclaim_helper(struct nfs_client *clp, static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp) { + set_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state); /* Mark all delegations for reclaim */ nfs_delegation_mark_reclaim(clp); nfs4_state_mark_reclaim_helper(clp, nfs4_state_mark_reclaim_reboot); -- 2.37.3