Convert explicit panic() call to assert.
Based on github pull request: #113 Submitted by: pmarillo@github MFC after: 1 week
This commit is contained in:
parent
ea10ca8944
commit
30c438723d
@ -1579,8 +1579,7 @@ umtx_pi_setowner(struct umtx_pi *pi, struct thread *owner)
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user