git: inpcb: Save UDP inpcb into temporary memory during in_pcblist

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


commit db190d5c850fbe0b4eddccd968f6732cbf2737cd
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Jan 21 13:30:19 2011 +0800

    inpcb: Save UDP inpcb into temporary memory during in_pcblist
    
    The temorary memory is used later to do the SYSCTL_OUT without
    the udbinfo serializer being held.  Mainly to avoid deadlock
    triggered by holding serializer and copyout.
    
    Reminded-by: dillon@

Summary of changes:
 sys/netinet/in_pcb.c     |   43 ++++++++++++++++++++++++++++++++-----------
 sys/netinet/in_pcb.h     |    4 +++-
 sys/netinet/udp_usrreq.c |   21 +++++++++++++++++++--
 3 files changed, 54 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/db190d5c850fbe0b4eddccd968f6732cbf2737cd


-- 
DragonFly BSD source repository





More information about the Commits mailing list