Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2005 15:34:42 +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_socket.c
Message-ID:  <200511021534.jA2FYgmk083697@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2005-11-02 15:34:42 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_socket.c 
  Log:
  Fix several races between socket closure and node/hook
  destruction:
    - Backout 1.62, since it doesn't fix all possible
      problems.
    - Upon node creation, put an additional reference on node.
    - Add a mutex and refcounter to struct ngsock. Netgraph node,
      control socket and data socket all count as references.
    - Introduce ng_socket_free_priv() which removes one reference
      from ngsock, and frees it when all references has gone.
    - No direct pointers between pcbs and node, all pointing
      is done via struct ngsock and protected with mutex.
  
  Revision  Changes    Path
  1.70      +100 -80   src/sys/netgraph/ng_socket.c



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