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.

MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Mar 18 2021, 7:20 PM
Parents
rG3b57ddb029da: Rename linux_set_upcall_kse() to linux_set_upcall().
Branches
Unknown
Tags
Unknown