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

Robert Watson rwatson at FreeBSD.org
Mon Feb 4 04:25:14 PST 2008


rwatson     2008-02-04 12:25:13 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_sockbuf.c uipc_socket.c 
    sys/sys              socketvar.h 
  Log:
  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 intializing
    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.
  
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.176     +1 -2      src/sys/kern/uipc_sockbuf.c
  1.305     +12 -12    src/sys/kern/uipc_socket.c
  1.162     +1 -0      src/sys/sys/socketvar.h


More information about the cvs-src mailing list