DragonFly BSD
DragonFly commits List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destroy()


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Jan 2011 17:50:28 -0800 (PST)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]