]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: return delegations in the NFS VOP_RECLAIM()
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 26 Apr 2021 00:57:55 +0000 (17:57 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 26 Apr 2021 00:57:55 +0000 (17:57 -0700)
commitaad780464fad1e32c97316515a4044d661413a6b
tree7dd7a25cbb7fe074ce12cc8c5a7db401e6f5463a
parentd55bf492f8f587e4a99f4dcb39a96159b4431782
nfscl: return delegations in the NFS VOP_RECLAIM()

After a vnode is recycled it can no longer be
acquired via vfs_hash_get() and, as such,
a delegation for the vnode cannot be recalled.

In the unlikely event that a delegation still
exists when the vnode is being recycled, return
the delegation since it will no longer be
recallable.

Until you have this patch in your NFSv4 client,
you should consider avoiding the use of delegations.

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