cvs commit: src/sys/kern kern_spinlock.c src/sys/sys spinlock2.h
Nicolas Thery
nth at crater.dragonflybsd.org
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
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
More information about the Commits
mailing list