HomeFreeBSD

nfsd: Use the COPY_FILE_RANGE_TIMEO1SEC flag

Description

nfsd: Use the COPY_FILE_RANGE_TIMEO1SEC flag

Although it is not specified in the RFCs, the concept that
the NFSv4 server should reply to an RPC request within a
reasonable time is accepted practice within the NFSv4 community.

Without this patch, the NFSv4.2 server attempts to reply to
a Copy operation within 1 second by limiting the copy to
vfs.nfs.maxcopyrange bytes (default 10Mbytes). This is crude at
best, given the large variation in I/O subsystem performance.

This patch uses the COPY_FILE_RANGE_TIMEO1SEC flag added by
commit c5128c48df3c to limit the reply time for a Copy
operation to approximately 1 second.

(cherry picked from commit 103b207536f976cb350558769f5f428e05ec61dc)

Details

Provenance
rmacklemAuthored on Sep 8 2021, 9:29 PM
Parents
rG9352de39c3dc: vt: bound buffer access in redraw optimization
Branches
Unknown
Tags
Unknown