created | 2024-12-23T00:31:20Z |
---|---|
begin | 2024-12-19T22:10:35Z |
end | 2024-12-19T22:11:35Z |
path | src/sys |
commits | 1 |
date | 2024-12-19T22:11:35Z | |||
---|---|---|---|---|
author | mvs | |||
files | src/sys/kern/uipc_socket.c | log | diff | annotate |
src/sys/kern/uipc_socket2.c | log | diff | annotate | |
src/sys/netinet/tcp_input.c | log | diff | annotate | |
src/sys/netinet/tcp_output.c | log | diff | annotate | |
src/sys/netinet/tcp_usrreq.c | log | diff | annotate | |
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 |