Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2005 09:51:54 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netgraph ng_pptpgre.c
Message-ID:  <200508300951.j7U9pt9d056483@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2005-08-30 09:51:54 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_pptpgre.c 
  Log:
  Lock down PPTP node, since it has many data structures, that won't survive
  parallel ng_pptp_rcvdata():
  
  - Add a per-node mutex.
  - Acquire mutex during all ng_pptp_rcvdata() method.
  - Make callouts protected by mutex. Now callouts count as
    netgraph writers, but there are plans to allow reader callouts
    for nodes, that have internal locking.
  - Acquire mutex in ng_pptp_reset(), which can be triggered
    by a message or node shutdown.
  
  PR:             kern/80035
  Tested by:      Deomid Ryabkov <myself rojer.pp.ru>
  Reviewed by:    Deomid Ryabkov <myself rojer.pp.ru>
  
  Revision  Changes    Path
  1.38      +25 -7     src/sys/netgraph/ng_pptpgre.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508300951.j7U9pt9d056483>