Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2017 18:11:59 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r314674 - stable/10/sys/kern
Message-ID:  <201703041811.v24IBxwd001179@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sat Mar  4 18:11:59 2017
New Revision: 314674
URL: https://svnweb.freebsd.org/changeset/base/314674

Log:
  MFC r313909:
  
    Fix panic with unlocked vnode to vrecycle().

Modified:
  stable/10/sys/kern/uipc_mqueue.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/uipc_mqueue.c
==============================================================================
--- stable/10/sys/kern/uipc_mqueue.c	Sat Mar  4 18:07:30 2017	(r314673)
+++ stable/10/sys/kern/uipc_mqueue.c	Sat Mar  4 18:11:59 2017	(r314674)
@@ -703,7 +703,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?201703041811.v24IBxwd001179>