svn commit: r326922 - stable/11/sys/kern

Mark Johnston markj at FreeBSD.org
Sun Dec 17 19:58:49 UTC 2017


Author: markj
Date: Sun Dec 17 19:58:48 2017
New Revision: 326922
URL: https://svnweb.freebsd.org/changeset/base/326922

Log:
  MFC r326438:
  Plug a name cache lock leak.

Modified:
  stable/11/sys/kern/vfs_cache.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/vfs_cache.c
==============================================================================
--- stable/11/sys/kern/vfs_cache.c	Sun Dec 17 19:49:37 2017	(r326921)
+++ stable/11/sys/kern/vfs_cache.c	Sun Dec 17 19:58:48 2017	(r326922)
@@ -1151,6 +1151,8 @@ retry_dotdot:
 				SDT_PROBE3(vfs, namecache, lookup, miss, dvp,
 				    "..", NULL);
 				mtx_unlock(dvlp);
+				if (dvlp2 != NULL)
+					mtx_unlock(dvlp2);
 				return (0);
 			}
 			if ((cnp->cn_flags & MAKEENTRY) == 0) {


More information about the svn-src-stable-11 mailing list