Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:43 -0000
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r346136 - projects/fuse2/sys/fs/fuse
Message-ID:  <201904112113.x3BLDsa2033919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904112113.x3BLDsa2033919>