cvs commit: src/sys/kern kern_rwlock.c src/sys/sys rwlock.h

Attilio Rao attilio at FreeBSD.org
Fri Jul 20 08:43:42 UTC 2007


attilio     2007-07-20 08:43:42 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_rwlock.c 
    sys/sys              rwlock.h 
  Log:
  Fix some problems with lock profiling in rw locks:
  - Adjust lock_profiling stubs semantic in the hard functions in order to be
    more accurate and trustable
  - As for sx locks, disable shared paths for lock_profiling.  Actually,
    lock_profiling has a subtle race which makes results caming from shared
    paths not completely trustable. A macro stub (LOCK_PROFILING_SHARED) can
    be actually used for re-enabling this paths, but is currently intended
    for developing use only.
  - style(9) fixes
  
  Approved by: jeff, kmacy, jhb[1]
  Approved by: re
  
  [1] Had initial reservations not shared by others, conceded
      in the end.
  
  Revision  Changes    Path
  1.28      +28 -8     src/sys/kern/kern_rwlock.c
  1.14      +6 -9      src/sys/sys/rwlock.h


More information about the cvs-src mailing list