Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2008 12:25:13 +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_sockbuf.c uipc_socket.c src/sys/sys socketvar.h
Message-ID:  <200802041225.m14CPEq4066666@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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