Use `sb_mtx' mutex(9) to protect `sb_timeo_nsecs'. In most places
authormvs <mvs@openbsd.org>
Mon, 5 Feb 2024 20:21:38 +0000 (20:21 +0000)
committermvs <mvs@openbsd.org>
Mon, 5 Feb 2024 20:21:38 +0000 (20:21 +0000)
commitc9054b5a522ca6eacc144c6546f58f94ae9bd286
tree23038983b353902b1a1520a9bd8246d6d05a5666
parentd115f50d217404079b89805fc41a8002bc6376ba
Use `sb_mtx' mutex(9) to protect `sb_timeo_nsecs'. In most places
solock() is still held because other 'sockbuf' members require it, but
in so{g,s}etopt() paths solock() is avoided.

ok bluhm
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/nfs/nfs_socket.c
sys/nfs/nfs_syscalls.c