git: tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destroy()
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sun Jan 30 17:51:31 PST 2011
commit 7123bbffe19efb0b96486c3be6f5eaa848dbf7f0
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Fri Jan 21 16:14:03 2011 +0800
tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destroy()
- We now turn on TF_SYNCACHE when listen(2) is called.
- When a listen(2) socket is to be close(2), the syncache list on the
current CPU is thoroughly iterated and all related syncache are marked
to be dropped instead of the first syncache.
Summary of changes:
sys/netinet/tcp_syncache.c | 14 ++------------
sys/netinet/tcp_usrreq.c | 1 +
2 files changed, 3 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7123bbffe19efb0b96486c3be6f5eaa848dbf7f0
--
DragonFly BSD source repository
More information about the Commits
mailing list