cvs commit: src/sys/kern kern_spinlock.c src/sys/sys spinlock2.h

Nicolas Thery nth at
Tue Jun 3 21:38:31 PDT 2008

nth         2008/06/03 21:34:54 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_spinlock.c 
    sys/sys              spinlock2.h 
  Fix bugs in spin_trylock_wr():
  	- globaldata.gd_spinlock_wr was not decremented back on failure;
  	- incorrect comparison in loop trying to clear cached shared bits (loop
  	  must fail if spinlock is still held for read by another cpu).
  Reviewed-by: dillon@
  Revision  Changes    Path
  1.15      +4 -2      src/sys/kern/kern_spinlock.c
  1.12      +3 -2      src/sys/sys/spinlock2.h

More information about the Commits mailing list