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:
parent
3792e753d3
commit
e081731767
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104160
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user