CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2024/12/19 15:11:35
Modified files:
sys/kern : uipc_socket.c uipc_socket2.c
sys/netinet : tcp_input.c tcp_output.c tcp_usrreq.c
Log message:
Use per-sockbuf mutex(9) to protect `so_rcv' buffer of tcp(4) sockets.
Only unlock soreceive() path, somove() path still locked exclusively. Also
exclusive socket lock will be taken in the soreceive() path each time
before pru_rcvd() call.
Note, both socket and `sb_mtx' locks are held while SS_CANTRCVMORE
modified, so socket lock is enough to check it in the protocol input
path.
ok bluhm