CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2023/01/21 04:23:24
Modified files:
sys/kern : kern_sysctl.c sys_socket.c uipc_socket.c
uipc_socket2.c uipc_usrreq.c
sys/miscfs/fifofs: fifo_vnops.c
sys/netinet : tcp_usrreq.c
sys/sys : socketvar.h
Log message:
Introduce per-sockbuf `sb_state' to use it with SS_CANTSENDMORE.
This time, socket's buffer lock requires solock() to be held. As a part of
socket buffers standalone locking work, move socket state bits which
represent its buffers state to per buffer state.
Opposing the previous reverted diff, the SS_CANTSENDMORE definition left
as is, but it used only with `sb_state'. `sb_state' ored with original
`so_state' when socket's data exported to the userland, so the ABI kept as
it was.
Inputs from deraadt@.
ok bluhm@