From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0644D15CAE for ; Tue, 8 Nov 2022 14:06:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78A44C433D6; Tue, 8 Nov 2022 14:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667916407; bh=lT8aBcHHy1SJ8TCiyEg38XLiruCUZBSpFaPnz5ppt0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0SfIvBbXFA7KKf0n/1aTeglDpI7hCgVkSWdS6X+DRamNmnOKgdohcgLJD6UZB6Ozc WWv/nUkicf6uDFtWgmRpZ3PFpqgDlhxVCZpA03/IplpqOM4SmifurvAYwRpZvgQfOQ NWNR45KOTTrXtF52R9Kfaq/o/h0K1m1lCzxHBzMw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Trond Myklebust , Anna Schumaker , Sasha Levin Subject: [PATCH 6.0 011/197] NFSv4.1: Handle RECLAIM_COMPLETE trunking errors Date: Tue, 8 Nov 2022 14:37:29 +0100 Message-Id: <20221108133355.296980593@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221108133354.787209461@linuxfoundation.org> References: <20221108133354.787209461@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Trond Myklebust [ Upstream commit 5d917cba3201e5c25059df96c29252fd99c4f6a7 ] If RECLAIM_COMPLETE sets the NFS4CLNT_BIND_CONN_TO_SESSION flag, then we need to loop back in order to handle it. Fixes: 0048fdd06614 ("NFSv4.1: RECLAIM_COMPLETE must handle NFS4ERR_CONN_NOT_BOUND_TO_SESSION") Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker Signed-off-by: Sasha Levin --- fs/nfs/nfs4state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 9bab3e9c702a..0b6bd6336c98 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -2671,6 +2671,7 @@ static void nfs4_state_manager(struct nfs_client *clp) if (status < 0) goto out_error; nfs4_state_end_reclaim_reboot(clp); + continue; } /* Detect expired delegations... */ -- 2.35.1