DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - remove spin_lock_rd() and spin_unlock_rd()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2010 00:07:23 -0700 (PDT)

commit 8f165b8c6a3e6ec3d65f6cf293a9913233dbd3bb
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sun Aug 29 23:25:42 2010 -0700

    kernel - remove spin_lock_rd() and spin_unlock_rd()
    
    * Remove shared spinlocks entirely.  We only have exclusive spinlocks
      now.
    
    * Strip out the exclusive/shared contention handling code.
    
    * Slightly rework the initial exponential backoff and test.  Do the
      atomic swap after the exponential backoff instead of before so
      we do not add a superfluous backoff after actually acquiring
      the spinlock.

Summary of changes:
 sys/kern/kern_ktr.c           |    6 --
 sys/kern/kern_spinlock.c      |  134 ++++-------------------------------------
 sys/kern/lwkt_thread.c        |    4 -
 sys/kern/usched_bsd4.c        |    1 -
 sys/platform/pc32/isa/clock.c |    3 +-
 sys/platform/pc64/isa/clock.c |    3 +-
 sys/sys/globaldata.h          |    2 +-
 sys/sys/spinlock2.h           |   85 ++------------------------
 8 files changed, 20 insertions(+), 218 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8f165b8c6a3e6ec3d65f6cf293a9913233dbd3bb


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]