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

git: udp: pcb list/hashtable protection stage 2/2


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

commit 5a38e392fc0cc6547f5e5a03a5fb1024ef576f54
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Thu Dec 23 16:03:08 2010 +0800

    udp: pcb list/hashtable protection stage 2/2
    
    - Use serializer to protect pcb list/hashtable iteration not running
      in netisrs.
    - Don't use marker pcb, so except for the functions running in netisr0,
      no other functions will alter pcb list.

Summary of changes:
 sys/netinet/in.c            |    5 ++++-
 sys/netinet/udp_usrreq.c    |   35 ++++++++++++++++++++++++++++++++---
 sys/netinet/udp_var.h       |    3 +++
 sys/netinet6/in6_ifattach.c |    5 ++++-
 sys/netinet6/udp6_usrreq.c  |    4 ++--
 5 files changed, 45 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5a38e392fc0cc6547f5e5a03a5fb1024ef576f54


-- 
DragonFly BSD source repository



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