cvs commit: src/sys/kern uipc_mbuf.c

Matthew Dillon dillon at
Sat Aug 11 18:48:12 PDT 2007

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

DragonFly src repository

  Modified files:
    sys/kern             uipc_mbuf.c 
  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

More information about the Commits mailing list