svn commit: r365272 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Wed Sep 2 19:21:10 UTC 2020
Author: mjg
Date: Wed Sep 2 19:21:10 2020
New Revision: 365272
URL: https://svnweb.freebsd.org/changeset/base/365272
Log:
vfs: purge cache entries early on vgone
There is no reason for them to linger across reclaim and it is an
invariant that doomed vnodes are not added to the namecache.
Modified:
head/sys/kern/vfs_subr.c
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Wed Sep 2 19:18:27 2020 (r365271)
+++ head/sys/kern/vfs_subr.c Wed Sep 2 19:21:10 2020 (r365272)
@@ -3850,6 +3850,7 @@ vgonel(struct vnode *vp)
VNASSERT(vp->v_holdcnt > 0, vp, ("vnode without hold count"));
VI_UNLOCK(vp);
}
+ cache_purge_vgone(vp);
vfs_notify_upper(vp, VFS_NOTIFY_UPPER_RECLAIM);
/*
@@ -3923,7 +3924,6 @@ vgonel(struct vnode *vp)
* Delete from old mount point vnode list.
*/
delmntque(vp);
- cache_purge_vgone(vp);
/*
* Done with purge, reset to the standard lock and invalidate
* the vnode.
More information about the svn-src-all
mailing list