cvs commit: src/sys/kern uipc_socket2.c src/sys/netinet tcp_input.c src/sys/sys socketvar.h

Robert Watson rwatson at FreeBSD.org
Wed Jun 23 18:37:09 PDT 2004


rwatson     2004-06-24 01:37:04 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket2.c 
    sys/netinet          tcp_input.c 
    sys/sys              socketvar.h 
  Log:
  Introduce sbreserve_locked(), which asserts the socket buffer lock on
  the socket buffer having its limits adjusted.  sbreserve() now acquires
  the lock before calling sbreserve_locked().  In soreserve(), acquire
  socket buffer locks across read-modify-writes of socket buffer fields,
  and calls into sbreserve/sbrelease; make sure to acquire in keeping
  with the socket buffer lock order.  In tcp_mss(), acquire the socket
  buffer lock in the calling context so that we have atomic read-modify
  -write on buffer sizes.
  
  Revision  Changes    Path
  1.135     +26 -7     src/sys/kern/uipc_socket2.c
  1.244     +6 -2      src/sys/netinet/tcp_input.c
  1.127     +2 -0      src/sys/sys/socketvar.h


More information about the cvs-src mailing list