DragonFly commits List (threaded) for 2005-05
cvs commit: src/sys/i386/include atomic.h src/sys/kern lwkt_serialize.c
dillon 2005/05/26 02:10:10 PDT
DragonFly src repository
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