cvs commit: src/sys/i386/include atomic.h src/sys/kern lwkt_serialize.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu May 26 02:11:53 PDT 2005
dillon 2005/05/26 02:10:10 PDT
DragonFly src repository
Modified files:
sys/i386/include atomic.h
sys/kern lwkt_serialize.c
Log:
Fix a bug in the serializer's race detection code. It is possible for
the lock to be acquired and released by an interrupt between our attempt
to acquire and our tsleep. We must test the condition again from within
a critical section before sleeping.
The previous code was doing a test-and-set when it should have just done
a test in the re-test case.
Revision Changes Path
1.13 +7 -9 src/sys/i386/include/atomic.h
1.4 +6 -6 src/sys/kern/lwkt_serialize.c
http://www.dragonflybsd.org/cvsweb/src/sys/i386/include/atomic.h.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_serialize.c.diff?r1=1.3&r2=1.4&f=u
More information about the Commits
mailing list