svn commit: r244444 - head/sys/kern
Jeff Roberson
jeff at FreeBSD.org
Wed Dec 19 20:08:07 UTC 2012
Author: jeff
Date: Wed Dec 19 20:08:06 2012
New Revision: 244444
URL: http://svnweb.freebsd.org/changeset/base/244444
Log:
- Correctly handle EWOULDBLOCK in quiesce_cpus
Discussed with: mav
Modified:
head/sys/kern/subr_smp.c
Modified: head/sys/kern/subr_smp.c
==============================================================================
--- head/sys/kern/subr_smp.c Wed Dec 19 18:51:35 2012 (r244443)
+++ head/sys/kern/subr_smp.c Wed Dec 19 20:08:06 2012 (r244444)
@@ -766,8 +766,9 @@ quiesce_cpus(cpuset_t map, const char *w
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:
More information about the svn-src-head
mailing list