cvs commit: src/sys/kern uipc_mbuf.c
Matthew Dillon
dillon at crater.dragonflybsd.org
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
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
More information about the Commits
mailing list