]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Do pNFS layout return_on_close synchronously
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 31 Oct 2021 23:31:31 +0000 (16:31 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Sun, 31 Oct 2021 23:31:31 +0000 (16:31 -0700)
commitd5d2ce1c8550a41e7374893ccd864c172461221f
tree7b1e9bf2a3e43b43a0099c8b0fa64a09a2f6513a
parent627d5d19664f8a7fc4c9c952ac4b15f8c9f29e95
nfscl: Do pNFS layout return_on_close synchronously

For pNFS servers that specify that Layouts are to be returned
upon close, they may expect that LayoutReturn to happen before
the associated Close.

This patch modifies the NFSv4.1/4.2 pNFS client so that this
is done.  This only affects a pNFS mount against a non-FreeBSD
NFSv4.1/4.2 server that specifies return_on_close in LayoutGet
replies.

Found during a recent IETF NFSv4 working group testing event.

MFC after: 2 weeks
sys/fs/nfs/nfsclstate.h
sys/fs/nfsclient/nfs_clstate.c