John Baldwin b85975277e 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)
2004-10-05 18:00:30 +00:00
..
2004-06-17 17:16:53 +00:00
2004-07-10 21:36:01 +00:00
2004-09-20 19:01:44 +00:00
2004-07-28 06:42:41 +00:00
2004-08-14 08:33:49 +00:00
2004-09-07 07:04:47 +00:00
2004-06-21 22:34:57 +00:00
2004-08-30 05:48:49 +00:00
2004-08-19 19:51:51 +00:00
2004-07-10 21:43:23 +00:00
2004-08-19 20:16:09 +00:00
2004-07-13 19:36:59 +00:00
2004-05-30 20:34:58 +00:00
2004-05-30 20:34:58 +00:00
2004-06-17 17:16:53 +00:00
2004-05-30 20:34:58 +00:00