commit the version I actually tested..

Submitted by:	davidxu
This commit is contained in:
Julian Elischer 2002-09-29 23:23:25 +00:00
parent 3792e753d3
commit e081731767
2 changed files with 8 additions and 4 deletions

View File

@ -762,8 +762,10 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line)
td1->td_blocked = NULL;
TD_CLR_MUTEX(td1);
if (TD_CAN_RUN(td1))
setrunqueue(td1);
if (!TD_CAN_RUN(td1)) {
mtx_unlock_spin(&sched_lock);
return;
}
if (td->td_critnest == 1 && td1->td_priority < pri) {
#ifdef notyet

View File

@ -762,8 +762,10 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line)
td1->td_blocked = NULL;
TD_CLR_MUTEX(td1);
if (TD_CAN_RUN(td1))
setrunqueue(td1);
if (!TD_CAN_RUN(td1)) {
mtx_unlock_spin(&sched_lock);
return;
}
if (td->td_critnest == 1 && td1->td_priority < pri) {
#ifdef notyet