mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
Do not pass a thread with the state TDS_RUNQ to setrunqueue(), otherwise
assertion in setrunqueue() fails.
This commit is contained in:
parent
2babaf74b5
commit
1b64ed3b5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100438
@ -504,8 +504,11 @@ faultin(p)
|
||||
PROC_LOCK(p);
|
||||
mtx_lock_spin(&sched_lock);
|
||||
FOREACH_THREAD_IN_PROC (p, td)
|
||||
if (td->td_state == TDS_RUNQ) /* XXXKSE */
|
||||
if (td->td_state == TDS_RUNQ) { /* XXXKSE */
|
||||
/* XXXKSE TDS_RUNQ causes assertion failure. */
|
||||
td->td_state = TDS_UNQUEUED;
|
||||
setrunqueue(td);
|
||||
}
|
||||
|
||||
p->p_sflag |= PS_INMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user