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:
Konstantin Belousov 2017-11-04 10:49:34 +00:00
parent ea10ca8944
commit 30c438723d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325386

View File

@ -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);
}