Date: Tue, 5 Oct 2004 18:00:30 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_turnstile.c Message-ID: <200410051800.i95I0UQJ066525@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2004-10-05 18:00:30 UTC FreeBSD src repository Modified files: sys/kern subr_turnstile.c Log: Add a critical section in turnstile_unpend() from before dropping the turnstile chain lock until after making all the awakened threads runnable. First, this fixes a priority inversion race. Second, this attempts to finish waking up all of the threads waiting on a turnstile before doing a preemption. Reviewed by: Stephan Uphoff (who found the priority inversion race) Revision Changes Path 1.149 +2 -0 src/sys/kern/subr_turnstile.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410051800.i95I0UQJ066525>