1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104160
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