svn commit: r314674 - stable/10/sys/kern
Bryan Drewery
bdrewery at FreeBSD.org
Sat Mar 4 18:12:00 UTC 2017
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);
}
More information about the svn-src-stable-10
mailing list