svn commit: r346136 - projects/fuse2/sys/fs/fuse

Alan Somers asomers at FreeBSD.org
Thu Apr 11 21:13:55 UTC 2019


Author: asomers
Date: Thu Apr 11 21:13:54 2019
New Revision: 346136
URL: https://svnweb.freebsd.org/changeset/base/346136

Log:
  fusefs: don't disappear a vnode on entry cache expiration
  
  When the entry cache expires, it's only necessary to purge the cache.
  Disappearing a vnode also purges the attribute cache, which is unnecessary,
  and invalidates the data cache, which could be harmful.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/fuse2/sys/fs/fuse/fuse_vnops.c

Modified: projects/fuse2/sys/fs/fuse/fuse_vnops.c
==============================================================================
--- projects/fuse2/sys/fs/fuse/fuse_vnops.c	Thu Apr 11 21:00:40 2019	(r346135)
+++ projects/fuse2/sys/fs/fuse/fuse_vnops.c	Thu Apr 11 21:13:54 2019	(r346136)
@@ -797,12 +797,7 @@ fuse_vnop_lookup(struct vop_lookup_args *ap)
 				/* Cache timeout */
 				atomic_add_acq_long(&fuse_lookup_cache_misses,
 					1);
-				/* 
-				 * XXX is fuse_internal_vnode_disappear ok to
-				 * call if another process is still using the
-				 * vnode?
-				 */
-				fuse_internal_vnode_disappear(*vpp);
+				cache_purge(*vpp);
 				if (dvp != *vpp)
 					vput(*vpp);
 				else 


More information about the svn-src-projects mailing list