- Correctly handle EWOULDBLOCK in quiesce_cpus
Discussed with: mav
This commit is contained in:
parent
5f9f8c19a2
commit
c3865e85e8
@ -766,8 +766,9 @@ quiesce_cpus(cpuset_t map, const char *wmesg, int prio)
|
|||||||
thread_unlock(curthread);
|
thread_unlock(curthread);
|
||||||
while (gen[cpu] == pcpu->pc_idlethread->td_generation) {
|
while (gen[cpu] == pcpu->pc_idlethread->td_generation) {
|
||||||
error = tsleep(quiesce_cpus, prio, wmesg, 1);
|
error = tsleep(quiesce_cpus, prio, wmesg, 1);
|
||||||
if (error)
|
if (error != EWOULDBLOCK)
|
||||||
goto out;
|
goto out;
|
||||||
|
error = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user