aboutsummaryrefslogtreecommitdiff
path: root/sys/netkey/keysock.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-05-01 20:44:46 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-05-01 20:44:46 +0000
commitf132072368c112104e35151ee7a1c30a1b74a107 (patch)
tree47fe7acf6ad89bf88d96ff3e57b5a8e31207cbf6 /sys/netkey/keysock.c
parent3498b5ed098ffe6c6bc8e1679da55335a40e055d (diff)
Redo the sigio locking.
Turn the sigio sx into a mutex. Sigio lock is really only needed to protect interrupts from dereferencing the sigio pointer in an object when the sigio itself is being destroyed. In order to do this in the most unintrusive manner change pgsigio's sigio * argument into a **, that way we can lock internally to the function.
Notes
Notes: svn path=/head/; revision=95883
Diffstat (limited to 'sys/netkey/keysock.c')
-rw-r--r--sys/netkey/keysock.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/netkey/keysock.c b/sys/netkey/keysock.c
index 79e4831fe3d8..68f104533aa6 100644
--- a/sys/netkey/keysock.c
+++ b/sys/netkey/keysock.c
@@ -39,15 +39,12 @@
#include <sys/domain.h>
#include <sys/errno.h>
#include <sys/kernel.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
-#include <sys/mutex.h>
#include <sys/protosw.h>
#include <sys/signalvar.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
-#include <sys/sx.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
@@ -430,10 +427,8 @@ key_attach(struct socket *so, int proto, struct thread *td)
key_cb.any_count++;
kp->kp_raw.rcb_laddr = &key_src;
kp->kp_raw.rcb_faddr = &key_dst;
- SIGIO_SLOCK();
soisconnected_locked(so);
so->so_options |= SO_USELOOPBACK;
- SIGIO_SUNLOCK();
splx(s);
return 0;