cvs commit: src/sys/kern lwkt_thread.c src/sys/sys spinlock2.h thread.h src/sys/vm vm_zone.c

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Nov 8 14:43:31 PST 2005


dillon      2005/11/08 14:40:01 PST

DragonFly src repository

  Modified files:
    sys/kern             lwkt_thread.c 
    sys/sys              spinlock2.h thread.h 
    sys/vm               vm_zone.c 
  Log:
  Turn around the spinlock code to reduce the chance of programmer error.
  Remove spin_lock_crit() and spin_unlock_crit().  Instead make the primary
  spinlock API, spin_lock() and spin_unlock(), enter and exit a critical
  section.  Add two API functions, spin_lock_quick() and spin_unlock_quick()
  which assume the caller is already in a critical section or that the spinlock
  will never be used by a preempting thread (hardware interrupt or software
  interrupt).
  
  Revision  Changes    Path
  1.85      +9 -1      src/sys/kern/lwkt_thread.c
  1.2       +29 -7     src/sys/sys/spinlock2.h
  1.72      +2 -1      src/sys/sys/thread.h
  1.19      +7 -7      src/sys/vm/vm_zone.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_thread.c.diff?r1=1.84&r2=1.85&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/spinlock2.h.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread.h.diff?r1=1.71&r2=1.72&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_zone.c.diff?r1=1.18&r2=1.19&f=u





More information about the Commits mailing list