- Correctly handle EWOULDBLOCK in quiesce_cpus

Discussed with:	mav
This commit is contained in:
Jeff Roberson 2012-12-19 20:08:06 +00:00
parent f8fe3dc9aa
commit 5b39d5c739
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244444

View File

@ -766,8 +766,9 @@ quiesce_cpus(cpuset_t map, const char *wmesg, int prio)
thread_unlock(curthread);
while (gen[cpu] == pcpu->pc_idlethread->td_generation) {
error = tsleep(quiesce_cpus, prio, wmesg, 1);
if (error)
if (error != EWOULDBLOCK)
goto out;
error = 0;
}
}
out: