DragonFly commits List (threaded) for 2007-08
DragonFly BSD
DragonFly commits List (threaded) for 2007-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern uipc_mbuf.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 11 Aug 2007 18:46:26 -0700 (PDT)

dillon      2007/08/11 18:46:26 PDT

DragonFly src repository

  Modified files:
    sys/kern             uipc_mbuf.c 
  Log:
  Make m_mclfree() MP safe by fixing a N->0 dereferencing race.  The spinlock
  wasn't safe because the structure is dynamically allocated and freed.
  Instead just use atomic_cmpset_int() to detect the 1->0 transition.
  
  Revision  Changes    Path
  1.65      +12 -17    src/sys/kern/uipc_mbuf.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_mbuf.c.diff?r1=1.64&r2=1.65&f=u



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