Set klist lock for sockets to make socket event filters MP-safe
authorvisa <visa@openbsd.org>
Sun, 24 Oct 2021 07:02:47 +0000 (07:02 +0000)
committervisa <visa@openbsd.org>
Sun, 24 Oct 2021 07:02:47 +0000 (07:02 +0000)
commit8e156a1d42b515fc5dabbc32b7b65838ef5e3ba1
tree33a6fae0a88650f70a8026f4979f493142075fa6
parent679e679b3b9e5fbab0b3880a1368bdc40f3eb3f6
Set klist lock for sockets to make socket event filters MP-safe

The filterops instances already provide f_modify and f_process
callbacks with proper internal locking. Locking of socket klists
has been the missing detail for MP-safety.

OK mpi@
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/miscfs/fifofs/fifo_vnops.c
sys/sys/event.h