DragonFly BSD
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

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 May 2005 02:10:10 -0700 (PDT)

dillon      2005/05/26 02:10:10 PDT

DragonFly src repository

  Modified files:
    sys/i386/include     atomic.h 
    sys/kern             lwkt_serialize.c 
  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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]