Simplify solock() and sounlock(). There is no reason to return a value
authorclaudio <claudio@openbsd.org>
Mon, 6 Jun 2022 14:45:41 +0000 (14:45 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 6 Jun 2022 14:45:41 +0000 (14:45 +0000)
commit84245c071807d6ad799492bef6a2e838a13a44e3
tree1f5ecd4b1eb04c1151ffa4514b4b41d283d75279
parent4b3e97d4f1d81ce9da6cee046b0a260ca8d4f115
Simplify solock() and sounlock(). There is no reason to return a value
for the lock operation and to pass a value to the unlock operation.
sofree() still needs an extra flag to know if sounlock() should be called
or not. But sofree() is called less often and mostly without keeping the lock.
OK mpi@ mvs@
16 files changed:
sys/kern/sys_socket.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/kern/uipc_syscalls.c
sys/kern/uipc_usrreq.c
sys/miscfs/fifofs/fifo_vnops.c
sys/net/if_pflow.c
sys/net/if_vxlan.c
sys/net/if_wg.c
sys/net/pfkeyv2.c
sys/net/rtsock.c
sys/netinet/in_pcb.c
sys/nfs/krpc_subr.c
sys/nfs/nfs_socket.c
sys/nfs/nfs_syscalls.c
sys/sys/socketvar.h