cvs commit: src/sys/kern uipc_sockbuf.c uipc_socket.c src/sys/sys socketvar.h

Robert Watson rwatson at FreeBSD.org
Sat Mar 1 15:40:53 UTC 2008


rwatson     2008-03-01 15:40:53 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             uipc_sockbuf.c uipc_socket.c 
    sys/sys              socketvar.h 
  Log:
  Merge uipc_sockbuf.c:1.176, uipc_socket.c:1.305, socketvar.h:1.162 from
  HEAD to RELENG_7:
  
    Further clean up sorflush:
  
    - Expose sbrelease_internal(), a variant of sbrelease() with no
      expectations about the validity of locks in the socket buffer.
    - Use sbrelease_internel() in sorflush(), and as a result avoid
      initializing and destroying a socket buffer lock for the temporary
      stack copy of the actual buffer, asb.
    - Add a comment indicating why we do what we do, and remove an XXX
      since things have gotten less ugly in sorflush() lately.
  
    This makes socket close cleaner, and possibly also marginally faster.
  
  Revision   Changes    Path
  1.171.2.3  +1 -2      src/sys/kern/uipc_sockbuf.c
  1.302.2.2  +12 -12    src/sys/kern/uipc_socket.c
  1.158.2.2  +1 -0      src/sys/sys/socketvar.h


More information about the cvs-src mailing list