tcp: Make listen(2) socket close(2) MPSAFE
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 24 Jan 2011 07:52:45 +0000 (15:52 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 31 Jan 2011 01:46:11 +0000 (09:46 +0800)
commitce6f0462a237160626ebf5cc25f2d792b941b905
tree6fdafa372b8772de3fb1702910eb9dea7d14be1c
parent8f9b2aed01104c25f1042763ecf10391f4cfb852
tcp: Make listen(2) socket close(2) MPSAFE

- Cleanup the syncache entries on each CPU for this inp.
- Before whacking the inp, we unhook the inp wildcard hash and cleanup
  its syncache entries by using a synchronized message.
- Fix up comment.

Reported-by: pavalos@
DragonFly-bug: http://bugs.dragonflybsd.org/issue1960
sys/netinet/tcp_subr.c