DragonFly commits List (threaded) for 2005-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern uipc_mbuf.c uipc_syscalls.c
dillon 2005/12/01 10:40:56 PST
DragonFly src repository
Modified files:
sys/kern uipc_mbuf.c uipc_syscalls.c
Log:
The primary mbuf cluster management code needs to be made MPSAFE since
m_free() is now MPSAFE. This involves using atomic_*() increment and
decrement for the mbuf cluster ref count and using a serializer if there
is a potential for a double-free (if the ref count is 2 or greater). The
common code path will tend not to need the serializer unless the interface
is being tapped.
Reported-by: Peter Avalos <pavalos@xxxxxxxxxxxx>
Revision Changes Path
1.54 +28 -6 src/sys/kern/uipc_mbuf.c
1.59 +45 -11 src/sys/kern/uipc_syscalls.c
http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_mbuf.c.diff?r1=1.53&r2=1.54&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_syscalls.c.diff?r1=1.58&r2=1.59&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]