]> git.ipfire.org Git - thirdparty/linux.git/commit
NFSD: Add nfsd4_copy time-to-live
authorChuck Lever <chuck.lever@oracle.com>
Thu, 31 Oct 2024 13:40:08 +0000 (09:40 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 19 Nov 2024 01:23:11 +0000 (20:23 -0500)
commitaa0ebd21df9c90a69f8bf00e3fa49d476be8e290
tree0540028b33ab47005fa8b525a4b9f9cc3f91f5e9
parentac0514f4d198b5d1d5ba367b122cdf5a68e711d4
NFSD: Add nfsd4_copy time-to-live

Keep async copy state alive for a few lease cycles after the copy
completes so that OFFLOAD_STATUS returns something meaningful.

This means that NFSD's client shutdown processing needs to purge
any of this state that happens to be waiting to die.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c
fs/nfsd/state.h
fs/nfsd/xdr4.h