Author: kib
Date: Sat Nov 11 12:08:07 2017
New Revision: 325709
URL: https://svnweb.freebsd.org/changeset/base/325709

Log:
  MFC r325386:
  Convert explicit panic() call to assert.

Modified:
  stable/11/sys/kern/kern_umtx.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_umtx.c
==============================================================================
--- stable/11/sys/kern/kern_umtx.c      Sat Nov 11 11:01:50 2017        
(r325708)
+++ stable/11/sys/kern/kern_umtx.c      Sat Nov 11 12:08:07 2017        
(r325709)
@@ -1577,8 +1577,7 @@ umtx_pi_setowner(struct umtx_pi *pi, struct thread *ow
 
        uq_owner = owner->td_umtxq;
        mtx_assert(&umtx_lock, MA_OWNED);
-       if (pi->pi_owner != NULL)
-               panic("pi_owner != NULL");
+       MPASS(pi->pi_owner == NULL);
        pi->pi_owner = owner;
        TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to