cvs commit: src/sys/net rtsock.c
emaste at FreeBSD.org
Wed Jan 11 10:12:36 PST 2006
emaste 2006-01-11 18:12:35 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
Protect interface and address lists using the appropriate mutex. These
locks were not aquired because the user buffers were not wired, thus it
was possible that that SYSCTL_OUT could sleep, causing a number of
different problems such as lock ordering issues and dead locks.
-Wire user supplied buffer to ensure SYSCTL_OUT will not sleep.
-Pickup ifnet locks to protect the list.
-Where applicable pickup address locks.
-Pickup radix node head locks.
-Remove splnet stubs
-Remove various comments about locking here, because they are no
It is the hope that these changes will make sysctl_rtsock MP safe.
Approved by: rwatson (mentor)
Revision Changes Path
22.214.171.124 +16 -11 src/sys/net/rtsock.c
More information about the cvs-all