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:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to