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

Attilio Rao attilio at FreeBSD.org
Sat Dec 1 03:28:38 PST 2007


attilio     2007-12-01 11:28:38 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             kern_mutex.c kern_rwlock.c 
  Log:
  MFC kern_mutex.c rev. 1.201 and kern_rwlock.c rev. 1.32:
  Simplify adaptive spinning algorithm which should make things faster
  when sleeping / waking up waiters.
  Also fix a bug with rw_try_upgrade() when adaptive spinning is enabled
  as turnstile_lookup() will recurse on ts_lock that will never be
  released [1].
  
  [1] Reported by: jeff with Nokia help
  Tested by: pho, kris (earlier, bugged version of rwlock part)
  Discussed with: jhb, jeff
  Approved by: re
  
  Revision   Changes    Path
  1.198.2.1  +41 -29    src/sys/kern/kern_mutex.c
  1.28.4.2   +72 -112   src/sys/kern/kern_rwlock.c


More information about the cvs-all mailing list