MPSAFE - mutex - better exclusive lock sequencer, bug fixes, abort
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Jul 2009 02:38:39 +0000 (19:38 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Jul 2009 02:38:39 +0000 (19:38 -0700)
commit685ebdab61459f9a21b78b3260fa119879e5c0fc
tree7182d26fa063cf09caf6b8d5c6c69d17952c7049
parent17386740d7e37fd918f769304323d08cfde748e2
MPSAFE - mutex - better exclusive lock sequencer, bug fixes, abort

* Redo the exclusive lock chaining algorithm.  Use an explicit
  link structure and directly pass ownership to the next thread
  waiting on an exclusive lock.

* Exclusive locks can be aborted via mtx_lock_ex_link() and
  mtx_abort_ex_link().

* Lots of misc bug fixes.
sys/kern/kern_mutex.c
sys/sys/mutex.h
sys/sys/mutex2.h