This time, socket's buffer lock requires solock() to be held. As a part of
authormvs <mvs@openbsd.org>
Sun, 11 Dec 2022 21:19:08 +0000 (21:19 +0000)
committermvs <mvs@openbsd.org>
Sun, 11 Dec 2022 21:19:08 +0000 (21:19 +0000)
commitcba97bf952259ec92710abc18b2484f8ef4c60f4
tree7d123ceb1c1236218cb400e4fdae4d27c130596c
parent3847dadb9ae354c44e407891bca6b441c0534a12
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. Introduce `sb_state' and
turn SS_CANTSENDMORE to SBS_CANTSENDMORE. This bit will be processed on
`so_snd' buffer only.

Move SS_CANTRCVMORE and SS_RCVATMARK bits with separate diff to make
review easier and exclude possible so_rcv/so_snd mistypes.

Also, don't adjust the remaining SS_* bits right now.

ok millert@
sys/kern/sys_socket.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/kern/uipc_usrreq.c
sys/miscfs/fifofs/fifo_vnops.c
sys/netinet/tcp_usrreq.c
sys/sys/socketvar.h