]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
NFSv4 client tracks opens, and the track records are only dropped when
authorkib <kib@FreeBSD.org>
Sun, 27 Nov 2016 09:20:58 +0000 (09:20 +0000)
committerkib <kib@FreeBSD.org>
Sun, 27 Nov 2016 09:20:58 +0000 (09:20 +0000)
commit82f9c275c43da09f404546cceeff187a90ecc573
treec33bb2a8c231e821fec183eb13fbe2c315f0076f
parent4343dadb9e37f234aadab4373a3bac7e45325533
NFSv4 client tracks opens, and the track records are only dropped when
the vnode is inactivated.  This contradicts with the nullfs caching
which keeps upper vnode around, as consequence keeping the use
reference to lower vnode.

Add a filesystem flag to request nullfs to not cache when mounted over
that filesystem, and set the flag for nfs v4 mounts.

Reported by: asomers
Reviewed by: rmacklem
Tested by: asomers, rmacklem
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/fs/nfsclient/nfs_clvfsops.c
sys/fs/nullfs/null_vfsops.c
sys/sys/mount.h