git: tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destr

看板DFBSD_commit作者時間15年前 (2011/01/31 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 7123bbffe19efb0b96486c3be6f5eaa848dbf7f0 Author: Sepherosa Ziehau <sephe@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
文章代碼(AID): #1DHXVaTa (DFBSD_commit)