Date: Sun, 5 Nov 2017 08:31:25 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325433 - head/sys/kern Message-ID: <201711050831.vA58VPY9052275@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Sun Nov 5 08:31:25 2017 New Revision: 325433 URL: https://svnweb.freebsd.org/changeset/base/325433 Log: namecache: skip locking in cache_purge_negative if there are no entries Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c ============================================================================== --- head/sys/kern/vfs_cache.c Sun Nov 5 08:20:27 2017 (r325432) +++ head/sys/kern/vfs_cache.c Sun Nov 5 08:31:25 2017 (r325433) @@ -1967,6 +1967,8 @@ cache_purge_negative(struct vnode *vp) CTR1(KTR_VFS, "cache_purge_negative(%p)", vp); SDT_PROBE1(vfs, namecache, purge_negative, done, vp); + if (LIST_EMPTY(&vp->v_cache_src)) + return; TAILQ_INIT(&ncps); vlp = VP2VNODELOCK(vp); mtx_lock(vlp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711050831.vA58VPY9052275>