cvs commit: src/sys/kern kern_mutex.c kern_rwlock.c kern_sx.c

John Baldwin jhb at FreeBSD.org
Thu Jul 27 21:45:56 UTC 2006


jhb         2006-07-27 21:45:55 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c kern_rwlock.c kern_sx.c 
  Log:
  Adjust td_locks for non-spin mutexes, rwlocks, and sx locks so that it is
  a count of all non-spin locks, not just lockmgr locks.  This can give us a
  much cheaper way to see if we have any locks held (such as when returning
  to userland via userret()) without requiring WITNESS.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.175     +7 -1      src/sys/kern/kern_mutex.c
  1.10      +4 -0      src/sys/kern/kern_rwlock.c
  1.29      +6 -0      src/sys/kern/kern_sx.c


More information about the cvs-all mailing list