Handle a rare but fatal race invoked sometimes when SIGSTOP is

invoked.
This commit is contained in:
Mark Murray 2001-04-13 09:29:34 +00:00
parent 488379bb11
commit f0b60d7560
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ propagate_priority(struct proc *p)
* If lock holder is actually running, just bump priority.
*/
if (p->p_oncpu != NOCPU) {
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB);
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB || p->p_stat == SSTOP);
return;
}

View File

@ -142,7 +142,7 @@ propagate_priority(struct proc *p)
* If lock holder is actually running, just bump priority.
*/
if (p->p_oncpu != NOCPU) {
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB);
MPASS(p->p_stat == SRUN || p->p_stat == SZOMB || p->p_stat == SSTOP);
return;
}