cvs commit: src/sys/netinet tcp_input.c

Robert Watson rwatson at FreeBSD.org
Sun Nov 7 19:19:36 GMT 2004


rwatson     2004-11-07 19:19:35 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_input.c 
  Log:
  Do some re-sorting of TCP pcbinfo locking and assertions: make sure to
  retain the pcbinfo lock until we're done using a pcb in the in-bound
  path, as the pcbinfo lock acts as a pseuo-reference to prevent the pcb
  from potentially being recycled.  Clean up assertions and make sure to
  assert that the pcbinfo is locked at the head of code subsections where
  it is needed.  Free the mbuf at the end of tcp_input after releasing
  any held locks to reduce the time the locks are held.
  
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.255     +5 -6      src/sys/netinet/tcp_input.c


More information about the cvs-src mailing list