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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325386
@ -1579,8 +1579,7 @@ umtx_pi_setowner(struct umtx_pi *pi, struct thread *owner)
|
|||||||
|
|
||||||
uq_owner = owner->td_umtxq;
|
uq_owner = owner->td_umtxq;
|
||||||
mtx_assert(&umtx_lock, MA_OWNED);
|
mtx_assert(&umtx_lock, MA_OWNED);
|
||||||
if (pi->pi_owner != NULL)
|
MPASS(pi->pi_owner == NULL);
|
||||||
panic("pi_owner != NULL");
|
|
||||||
pi->pi_owner = owner;
|
pi->pi_owner = owner;
|
||||||
TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
|
TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user