- Correctly handle EWOULDBLOCK in quiesce_cpus

Discussed with:	mav
This commit is contained in:
jeff 2012-12-19 20:08:06 +00:00
parent 5f9f8c19a2
commit c3865e85e8

View File

@ -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: