DragonFly commits List (threaded) for 2008-06
DragonFly BSD
DragonFly commits List (threaded) for 2008-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Nicolas Thery <nth@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 3 Jun 2008 21:34:54 -0700 (PDT)

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

DragonFly src repository

  Modified files:
    sys/kern             kern_spinlock.c 
    sys/sys              spinlock2.h 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_spinlock.c.diff?r1=1.14&r2=1.15&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/spinlock2.h.diff?r1=1.11&r2=1.12&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]