commit f328adf5da5056ca408a3e20b2fb449d9f5a72eb
Author: Sepherosa Ziehau <[email protected]>
Date: Fri Dec 2 19:54:17 2011 +0800
accept: Call pru_accept in protocol thread
This avoids socket.so_pcb use-after-check race against protocol thread.
There is no performance impact on the mostly used sockets:
- IPv4/IPv6 TCP implemented pru_savefaddr, so their pru_accept will not
be called at all
- UNIX domain socket uses sync msgport, so no protocol thread dispatching
Summary of changes:
sys/kern/uipc_msg.c | 16 +++++-----------
sys/kern/uipc_socket.c | 2 +-
sys/sys/protosw.h | 4 +---
sys/sys/socketops.h | 2 +-
4 files changed, 8 insertions(+), 16 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f328adf5da5056ca408a3e20b2fb449d9f5a72eb
--
DragonFly BSD source repository