Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 20:08:07 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244444 - head/sys/kern
Message-ID:  <201212192008.qBJK87j0075252@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212192008.qBJK87j0075252>