git: DragonFly_RELEASE_2_8 kernel - revamp mtx_spinlock()
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Oct 24 09:38:31 PDT 2010
commit c40689e9b134213e4a3e29c2548d0ec47c7dd40b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Oct 19 23:19:29 2010 -0700
kernel - revamp mtx_spinlock()
* Revamp mtx_spinlock(), add mtx_spinlock_try(), and add mtx_spinunlock().
* Enter a proper hard critical section when using mtx_spinlock*(),
just like the normal spinlock() code does.
The difference is that mtx spinlocks have a ref count and thus are
reentrant.
* mtx_spinlock*() is not used in the code yet. A followup commit will
begin using it for the syscons lock.
Summary of changes:
sys/kern/kern_mutex.c | 50 +++++++++++++++++++++++++++++-
sys/sys/mutex.h | 4 +-
sys/sys/mutex2.h | 81 +++++++++++++++++++++++++++++++++++++-----------
3 files changed, 113 insertions(+), 22 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c40689e9b134213e4a3e29c2548d0ec47c7dd40b
--
DragonFly BSD source repository
More information about the Commits
mailing list