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);
 }
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to