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

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Jan 30 17:51:33 PST 2011


commit 5a38e392fc0cc6547f5e5a03a5fb1024ef576f54
Author: Sepherosa Ziehau <sephe at 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





More information about the Commits mailing list