HomeFreeBSD

nfscl: Add support for read delegations and atomic upgrade

Description

nfscl: Add support for read delegations and atomic upgrade

For NFSv4.1/4.2, an atomic upgrade of a delegation from a
read delegation to a write delegation is allowed and can
result in significantly improved performance.
This patch adds this upgrade to the NFSv4.1/4.2 client and
enables use of read delegations.

For a test case of building a FreeBSD kernel (sources and
output objects) over a NFSv4.2 mount, these changes reduced
the elapsed time by 30% and included a reduction of 80% for
RPC counts when delegations were enabled. As such, with this
patch there are at least certain cases where enabling
delegations seems to be worth the increased complexity they
bring.

This patch should only affect the NFSv4.1/4.2 behaviour
when delegations are enabled, which is not the default.

(cherry picked from commit bb53f071e85a2ebb5b405e7fec4661a725b7caf5)

Details

Provenance
rmacklemAuthored on Jun 12 2024, 11:41 PM
Parents
rGf6f9589b9f05: nfscl: Add support for the NFSv4.1/4.2 WANT_xxx flags
Branches
Unknown
Tags
Unknown