async_rcvd: Don't add/drop socket reference on hot path
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 19 Mar 2013 08:51:49 +0000 (16:51 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 19 Mar 2013 08:51:49 +0000 (16:51 +0800)
commit901b9bd6b1962d0dd6f0f11f30b205f34ff11827
tree5e5a8a0f4352927bcca1c67c55d0a43a43db06ac
parentf65f767c30993b1fc4cb440689529d824ba5a60b
async_rcvd: Don't add/drop socket reference on hot path

Instead, add reference in tcp_attach(), and drop the reference in
tcp_close()
sys/kern/uipc_msg.c
sys/kern/uipc_socket2.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_usrreq.c