Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2009 22:06:48 +0000 (UTC)
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186981 - head/sys/fs/pseudofs
Message-ID:  <200901092206.n09M6mun070419@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcus (doc,ports committer)
Date: Fri Jan  9 22:06:48 2009
New Revision: 186981
URL: http://svn.freebsd.org/changeset/base/186981

Log:
  Fix a deadlock which can occur due to a pseudofs vnode not getting unlocked.
  
  Reported by:	Richard Todd <rmtodd@ichotolot.servalan.com>
  Reviewed by:	kib
  Approved by:	kib

Modified:
  head/sys/fs/pseudofs/pseudofs_vncache.c

Modified: head/sys/fs/pseudofs/pseudofs_vncache.c
==============================================================================
--- head/sys/fs/pseudofs/pseudofs_vncache.c	Fri Jan  9 21:57:49 2009	(r186980)
+++ head/sys/fs/pseudofs/pseudofs_vncache.c	Fri Jan  9 22:06:48 2009	(r186981)
@@ -212,6 +212,7 @@ retry2:
 			if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, curthread) == 0) {
 				++pfs_vncache_hits;
 				vgone(*vpp);
+				vput(*vpp);
 				*vpp = vp;
 				cache_purge(vp);
 				return (0);



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