diff options
author | Lawrence Stewart <lstewart@FreeBSD.org> | 2009-07-13 11:59:38 +0000 |
---|---|---|
committer | Lawrence Stewart <lstewart@FreeBSD.org> | 2009-07-13 11:59:38 +0000 |
commit | 91a5ebde451c83cebd9dbc80d2acd44d8a0b30f3 (patch) | |
tree | e83d9042b5936e6b6840720eb706159296313759 | |
parent | 237fbe0a1c4d0d97f2041006884e42d4d704b906 (diff) |
Notes
-rw-r--r-- | sys/netinet/tcp_sack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c index 29bf50c5aa8b..2a2ae9cdf452 100644 --- a/sys/netinet/tcp_sack.c +++ b/sys/netinet/tcp_sack.c @@ -273,7 +273,7 @@ tcp_sackhole_alloc(struct tcpcb *tp, tcp_seq start, tcp_seq end) hole->rxmit = start; tp->snd_numholes++; - V_tcp_sack_globalholes++; + atomic_add_int(&V_tcp_sack_globalholes, 1); return hole; } @@ -289,7 +289,7 @@ tcp_sackhole_free(struct tcpcb *tp, struct sackhole *hole) uma_zfree(V_sack_hole_zone, hole); tp->snd_numholes--; - V_tcp_sack_globalholes--; + atomic_subtract_int(&V_tcp_sack_globalholes, 1); KASSERT(tp->snd_numholes >= 0, ("tp->snd_numholes >= 0")); KASSERT(V_tcp_sack_globalholes >= 0, ("tcp_sack_globalholes >= 0")); |