]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: Fix clearing of layout segments in layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 21 Aug 2024 18:05:01 +0000 (14:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:06 +0000 (19:24 +0200)
commitd8a7055ffd398ae8f05958f4d8ffe9376cad5d36
tree8b55dad262d39877a62ebae8a509408cb8caadb9
parent75e6572ccb78e4d37a3efc29f7baa22dfcdf80ba
NFSv4: Fix clearing of layout segments in layoutreturn

[ Upstream commit d72b7963115bea971a28eaa2cb76722c023f9fdf ]

Make sure that we clear the layout segments in cases where we see a
fatal error, and also in the case where the layout is invalid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c