diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-01 20:44:46 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-01 20:44:46 +0000 |
commit | 798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df (patch) | |
tree | 47fe7acf6ad89bf88d96ff3e57b5a8e31207cbf6 /sys/netinet/tcp_reass.c | |
parent | 97feabed08c26b8c53c3d7fd222d27f5c7433f82 (diff) | |
download | FreeBSD-src-798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df.zip FreeBSD-src-798c53d495a4eb1c10dc65a1d2ca87e2cb12f8df.tar.gz |
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.
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r-- | sys/netinet/tcp_reass.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 2a78e5e..b193327 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -42,7 +42,6 @@ #include <sys/param.h> #include <sys/kernel.h> -#include <sys/lock.h> #include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/proc.h> /* for proc0 declaration */ @@ -50,7 +49,6 @@ #include <sys/signalvar.h> #include <sys/socket.h> #include <sys/socketvar.h> -#include <sys/sx.h> #include <sys/sysctl.h> #include <sys/syslog.h> #include <sys/systm.h> @@ -1845,14 +1843,10 @@ process_ACK: * specification, but if we don't get a FIN * we'll hang forever. */ - SIGIO_SLOCK(); if (so->so_state & SS_CANTRCVMORE) { soisdisconnected_locked(so); - SIGIO_SUNLOCK(); callout_reset(tp->tt_2msl, tcp_maxidle, tcp_timer_2msl, tp); - } else { - SIGIO_SUNLOCK(); } tp->t_state = TCPS_FIN_WAIT_2; } |