HomeFreeBSD

nfsv4 pnfs client: fix updating of the layout stateid.seqid

Description

nfsv4 pnfs client: fix updating of the layout stateid.seqid

During a recent NFSv4 testing event a test server was replying
NFSERR_OLDSTATEID for layout stateids presented to the server
for LayoutReturn operations. Upon rereading RFC5661, it was
apparent that the FreeBSD NFSv4.1/4.2 pNFS client did not
maintain the seqid field of the layout stateid correctly.

This patch is believed to correct the problem. Tested against
a FreeBSD pNFS server with diagnostics added to check the stateid's
seqid did not indicate problems. Unfortunately, testing aginst
this server will not happen in the near future, so the fix may
not be correct yet.

(cherry picked from commit fd232a21bb35e8ba8b62c2314b16b2f1d7c00afc)

Details

Provenance
rmacklemAuthored on Mar 18 2021, 7:20 PM
Parents
rG76af2649b078: MFC 874b1a35486b570513680c3d456b062ba097e1d9:
Branches
Unknown
Tags
Unknown