]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Revert "NFSD: Force all NFSv4.2 COPY requests to be synchronous"
authorChuck Lever <chuck.lever@oracle.com>
Wed, 18 Jun 2025 12:58:03 +0000 (08:58 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:46 +0000 (12:46 -0400)
In the past several kernel releases, we've made NFSv4.2 async copy
reliable:
 - The Linux NFS client and server now both implement and use the
   NFSv4.2 OFFLOAD_STATUS operation
 - The Linux NFS server keeps copy stateids around longer
 - The Linux NFS client and server now both implement referring call
   lists

And resilient against DoS:
 - The Linux NFS server limits the number of concurrent async copy
   operations

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

index f4edf222e00e6c56067c47e4c864f0b2df790527..71b428efcbb59485d12d1041ca17bd1bc09e631a 100644 (file)
@@ -1917,13 +1917,6 @@ nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
        struct nfsd42_write_res *result;
        __be32 status;
 
-       /*
-        * Currently, async COPY is not reliable. Force all COPY
-        * requests to be synchronous to avoid client application
-        * hangs waiting for COPY completion.
-        */
-       nfsd4_copy_set_sync(copy, true);
-
        result = &copy->cp_res;
        nfsd_copy_write_verifier((__be32 *)&result->wr_verifier.data, nn);