cvs commit: src/sys/conf files src/sys/kern kern_mutex.c kern_sx.c subr_lock.c subr_turnstile.c subr_witness.c src/sys/sys lock.h mutex.h

John Baldwin jhb at
Tue Aug 1 17:40:14 UTC 2006

jhb         2006-08-01 17:40:13 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/conf             files 
    sys/kern             kern_mutex.c kern_sx.c subr_turnstile.c 
    sys/sys              lock.h mutex.h 
  Added files:           (Branch: RELENG_6)
    sys/kern             subr_lock.c 
  MFC: Sync up with HEAD in some of the locking primitive details:
  - Teach WITNESS_SAVE() and WITNESS_RESTORE() to work with spin locks instead
    of only sleep locks.
  - Do the extra step required when destroying a locked spin mutex.
  - Initialize thread0.td_contested in init_turnstiles() rather than
  - Add LOCK_CLASS() macro and sync with HEAD on its usage.  For RELENG_6
    this just maps to lock->lo_class.  (In HEAD lo_class was removed an array
    index was encoded into lo_flags instead.)
  - Add subr_lock.c including adding lock_init() and lock_destroy() functions
    as we as moving the 'show lock' command into this file from kern_mutex.c.
  Revision     Changes    Path
  1.1031.2.34  +1 -0      src/sys/conf/files    +31 -49    src/sys/kern/kern_mutex.c     +3 -16     src/sys/kern/kern_sx.c      +100 -0    src/sys/kern/subr_lock.c (new)    +1 -0      src/sys/kern/subr_turnstile.c   +48 -38    src/sys/kern/subr_witness.c     +12 -5     src/sys/sys/lock.h     +1 -1      src/sys/sys/mutex.h

More information about the cvs-src mailing list