]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFSD: Add a laundromat reaper for async copy state
authorChuck Lever <chuck.lever@oracle.com>
Thu, 31 Oct 2024 13:40:07 +0000 (09:40 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 19 Nov 2024 01:23:11 +0000 (20:23 -0500)
commitac0514f4d198b5d1d5ba367b122cdf5a68e711d4
treea6649ecf6d30d684b92008a3b6cc7ece020e06a9
parentb44ffa4c4f57ffe8a0967963538689fed169f1c8
NFSD: Add a laundromat reaper for async copy state

RFC 7862 Section 4.8 states:

> A copy offload stateid will be valid until either (A) the client
> or server restarts or (B) the client returns the resource by
> issuing an OFFLOAD_CANCEL operation or the client replies to a
> CB_OFFLOAD operation.

Instead of releasing async copy state when the CB_OFFLOAD callback
completes, now let it live until the next laundromat run after the
callback completes.

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