1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00
Jeff Roberson 2502c107ba Commit 3/14 of sched_lock decomposition.
- Add a per-turnstile spinlock to solve potential priority propagation
   deadlocks that are possible with thread_lock().
 - The turnstile lock order is defined as the exact opposite of the
   lock order used with the sleep locks they represent.  This allows us
   to walk in reverse order in priority_propagate and this is the only
   place we wish to multiply acquire turnstile locks.
 - Use the turnstile_chain lock to protect assigning mutexes to turnstiles.
 - Change the turnstile interface to pass back turnstile pointers to the
   consumers.  This allows us to reduce some locking and makes it easier
   to cancel turnstile assignment while the turnstile chain lock is held.

Tested by:      kris, current@
Tested on:      i386, amd64, ULE, 4BSD, libthr, libkse, PREEMPTION, etc.
Discussed with: kris, attilio, kmacy, jhb, julian, bde (small parts each)
2007-06-04 23:51:44 +00:00
..
2007-03-16 13:39:04 +00:00
2006-03-23 08:47:28 +00:00
2006-09-21 01:38:58 +00:00
2006-08-16 09:34:56 +00:00
2006-09-22 22:11:29 +00:00
2007-04-09 22:29:13 +00:00
2007-04-03 17:57:50 +00:00
2007-05-17 16:03:14 +00:00
2007-02-06 16:24:57 +00:00
2007-04-15 06:30:28 +00:00
2006-03-28 16:20:29 +00:00
2006-03-28 16:20:29 +00:00
2006-11-11 16:19:12 +00:00
2007-04-21 18:11:19 +00:00
2006-11-26 11:55:48 +00:00
2006-12-20 19:26:30 +00:00
2006-03-01 06:48:31 +00:00
2006-11-29 19:08:45 +00:00