summaryrefslogtreecommitdiffstats
path: root/sys/netipx/spx_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-03-23 19:58:12 +0000
committerrwatson <rwatson@FreeBSD.org>2006-03-23 19:58:12 +0000
commit925eb76ba3564d403af4210dfa40dde20fa1726c (patch)
tree6f34f4eb9a0cff3c695683b8d65c1cffe157709c /sys/netipx/spx_usrreq.c
parent2f76715fb3c6085157c269d3bc144859714ba8ee (diff)
downloadFreeBSD-src-925eb76ba3564d403af4210dfa40dde20fa1726c.zip
FreeBSD-src-925eb76ba3564d403af4210dfa40dde20fa1726c.tar.gz
Move spx_savesi from being a global variable to an automatically allocated
variable on the spx_input() stack. It's not very large, and this will avoid parallelism issues when spx_input() runs in more than one thread at a time. MFC after: 1 month
Diffstat (limited to 'sys/netipx/spx_usrreq.c')
-rw-r--r--sys/netipx/spx_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 0307d64..cc5c505 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -70,7 +70,6 @@ static u_short spx_newchecks[50];
static int spx_hardnosed;
static int spx_use_delack = 0;
static int traceallspxs = 0;
-static struct spx spx_savesi;
static struct spx_istat spx_istat;
/* Following was struct spxstat spxstat; */
@@ -159,6 +158,7 @@ spx_input(m, ipxp)
register struct spxpcb *cb;
register struct spx *si = mtod(m, struct spx *);
register struct socket *so;
+ struct spx spx_savesi;
int dropsocket = 0;
short ostate = 0;
OpenPOWER on IntegriCloud