HomeFreeBSD

Modify the NFSv4.2 VOP_COPY_FILE_RANGE() client call to return after one

Description

Modify the NFSv4.2 VOP_COPY_FILE_RANGE() client call to return after one
successful RPC.

Without this patch, the NFSv4.2 VOP_COPY_FILE_RANGE() client call would
loop until the copy "len" was completed. The problem with doing this is
that it might take a considerable time to complete for a large "len".
By returning after a single successful Copy RPC that copied some of the
data, the application that did the copy_file_range(2) syscall will be
more responsive to signal delivery for large "len" copies.

Details

Provenance
rmacklemAuthored on Oct 1 2020, 12:47 AM
Parents
rG961afe3c9900: Clip the "len" argument to vn_generic_copy_file_range() at a
Branches
Unknown
Tags
Unknown

Event Timeline