]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsv4 pnfs client: fix updating of the layout stateid.seqid
authorRick Macklem <rmacklem@FreeBSD.org>
Thu, 18 Mar 2021 19:20:25 +0000 (12:20 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Thu, 18 Mar 2021 19:20:25 +0000 (12:20 -0700)
commitfd232a21bb35e8ba8b62c2314b16b2f1d7c00afc
tree57459c667035a5f5eabff140366a27bdda968c57
parent3b57ddb029daf225a8385dade491019269da82e8
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
sys/fs/nfsclient/nfs_clstate.c