Fix a race in the serializer's use of atomic_intr_cond_enter(). When
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 25 May 2005 22:59:20 +0000 (22:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 25 May 2005 22:59:20 +0000 (22:59 +0000)
commitd02b46cd8025c5b74d6e1b5463760c4ec8e162dc
treea2aa386dab3917f5773693f961174e564a6feb11
parentd5086f2b5c88abe0ebffc5b46861c11ee66a93e2
Fix a race in the serializer's use of atomic_intr_cond_enter().  When
the procedure call is made the serializer must enter a critical section
and check the bit again before actually sleeping to avoid a race against
wakeup().
sys/cpu/i386/include/atomic.h
sys/i386/include/atomic.h
sys/kern/lwkt_serialize.c