cvs commit: src/sys/i386/include atomic.h src/sys/kern lwkt_serialize.c
dillon at crater.dragonflybsd.org
Thu May 26 02:11:53 PDT 2005
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
More information about the Commits