aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/accf_http.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/netinet/accf_http.c
parent3498b5ed098ffe6c6bc8e1679da55335a40e055d (diff)
downloadsrc-f132072368c112104e35151ee7a1c30a1b74a107.tar.gz
src-f132072368c112104e35151ee7a1c30a1b74a107.zip
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/netinet/accf_http.c')
-rw-r--r--sys/netinet/accf_http.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/netinet/accf_http.c b/sys/netinet/accf_http.c
index 310917463776..4a3e17ee0b8e 100644
--- a/sys/netinet/accf_http.c
+++ b/sys/netinet/accf_http.c
@@ -31,12 +31,10 @@
#include <sys/param.h>
#include <sys/kernel.h>
-#include <sys/lock.h>
#include <sys/mbuf.h>
#include <sys/signalvar.h>
#include <sys/sysctl.h>
#include <sys/socketvar.h>
-#include <sys/sx.h>
/* check for GET/HEAD */
static void sohashttpget(struct socket *so, void *arg, int waitflag);
@@ -203,11 +201,9 @@ sohashttpget(struct socket *so, void *arg, int waitflag)
fallout:
DPRINT("fallout");
- SIGIO_SLOCK();
so->so_upcall = NULL;
so->so_rcv.sb_flags &= ~SB_UPCALL;
soisconnected_locked(so);
- SIGIO_SUNLOCK();
return;
}
@@ -287,11 +283,9 @@ readmore:
fallout:
DPRINT("fallout");
- SIGIO_SLOCK();
so->so_upcall = NULL;
so->so_rcv.sb_flags &= ~SB_UPCALL;
soisconnected_locked(so);
- SIGIO_SUNLOCK();
return;
}
@@ -359,10 +353,8 @@ readmore:
return;
gotit:
- SIGIO_SLOCK();
so->so_upcall = NULL;
so->so_rcv.sb_flags &= ~SB_UPCALL;
soisconnected_locked(so);
- SIGIO_SUNLOCK();
return;
}