DragonFly commits List (threaded) for 2005-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
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
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]