Page MenuHomeFreeBSD

Add support to the NFSv4.1 client for use of a single OpenOwner for all Opens
ClosedPublic

Authored by rmacklem on Dec 29 2016, 9:54 PM.

Details

Summary

Some NFSV4.1 servers, such as AmazonEFS, have very low limits for the number of
OpenOwners. As such, the default of an OpenOwner/process can easily exceed this
limit. Since NFSv4.1 allows multiple concurrent Opens on an OpenOwner, using a
single OpenOwner for all Opens is practical.

This patch (still experimental) does this via a new NFS mount option called "oneopenown"
which can only be applied to NFSv4.1 mounts.

Test Plan

I have done minimal testing and cperciva@ is testing against an AmazonEFS service.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

rmacklem updated this revision to Diff 23423.Dec 29 2016, 9:54 PM
rmacklem retitled this revision from to Add support to the NFSv4.1 client for use of a single OpenOwner for all Opens.
rmacklem updated this object.
rmacklem edited the test plan for this revision. (Show Details)
rmacklem added a reviewer: cperciva.

I have added cperciva@ as a reviewer, since he is doing the testing.
He may not actually be willing to review the code.
Anyone else wishing to review this is welcome to do so.

cperciva edited edge metadata.Dec 29 2016, 10:02 PM

The question is more whether I'm *able* to usefully review rather than whether I'm *willing*. :-)

rmacklem updated this revision to Diff 27388.Apr 12 2017, 9:14 PM

Two parts of the patch have been removed, since they are already committed to head/current.
They were fixes not specific to using a single open_owner in an NFSv4.1 mount.

This revision was automatically updated to reflect the committed changes.