Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2006 13:52:57 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern uipc_usrreq.c
Message-ID:  <200603171352.k2HDqwPq077306@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2006-03-17 13:52:57 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_usrreq.c 
  Log:
  Modify UNIX domain sockets to guarantee, and assume, that so_pcb is always
  defined for an in-use socket.  This allows us to eliminate countless tests
  of whether so_pcb is non-NULL, eliminating dozens of error cases.  For
  now, retain the call to sotryfree() in the uipc_abort() path, but this
  will eventually move to soabort().
  
  These new assumptions should be largely correct, and will become more so
  as the socket/pcb reference model is fixed.  Removing the notion that
  so_pcb can be non-NULL is a critical step towards further fine-graining
  of the UNIX domain socket locking, as the so_pcb reference no longer
  needs to be protected using locks, instead it is a property of the socket
  life cycle.
  
  Revision  Changes    Path
  1.163     +36 -97    src/sys/kern/uipc_usrreq.c



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