Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2017 05:07:53 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313909 - head/sys/kern
Message-ID:  <201702180507.v1I57rOM008704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sat Feb 18 05:07:53 2017
New Revision: 313909
URL: https://svnweb.freebsd.org/changeset/base/313909

Log:
  Fix panic with unlocked vnode to vrecycle().
  
  MFC after:	2 weeks

Modified:
  head/sys/kern/uipc_mqueue.c

Modified: head/sys/kern/uipc_mqueue.c
==============================================================================
--- head/sys/kern/uipc_mqueue.c	Sat Feb 18 01:52:10 2017	(r313908)
+++ head/sys/kern/uipc_mqueue.c	Sat Feb 18 05:07:53 2017	(r313909)
@@ -714,7 +714,9 @@ do_recycle(void *context, int pending __
 {
 	struct vnode *vp = (struct vnode *)context;
 
+	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
 	vrecycle(vp);
+	VOP_UNLOCK(vp, 0);
 	vdrop(vp);
 }
 



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