Move SB_SPLICE, SB_WAIT and SB_SEL to `sb_flags', serialized by solock().
authormpi <mpi@openbsd.org>
Sun, 10 Dec 2017 11:31:54 +0000 (11:31 +0000)
committermpi <mpi@openbsd.org>
Sun, 10 Dec 2017 11:31:54 +0000 (11:31 +0000)
commit3bf371cf5dd7363c2732088f9e49d4a9813d0139
treecc48cf8739be3f25111ad4a2e6fdac5e028d329e
parentd8f2acbc1a23de8719fdc9655ca286e545dbc449
Move SB_SPLICE, SB_WAIT and SB_SEL to `sb_flags', serialized by solock().

SB_KNOTE remains the only bit set on `sb_flagsintr' as it is set/unset in
contexts related to kqueue(2) where we'd like to avoid grabbing solock().

While here add some KERNEL_LOCK()/UNLOCK() dances around selwakeup() and
csignal() to mark which remaining functions need to be addressed in the
socket layer.

ok visa@, bluhm@
sys/kern/sys_socket.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/miscfs/fifofs/fifo_vnops.c