diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2017-10-29 14:56:37 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2017-10-29 14:56:37 +0000 |
commit | 7b5436a077c81aa21598910cbd9f55634db28c1a (patch) | |
tree | d70e2c12f423f3e4d5b44cfdec4d28f216b327b6 /sys/netinet/tcp_timer.c | |
parent | c707a087273faf875fbe063929a72e595ec615dc (diff) |
Move NET_{,UN}LOCK into individual slowtimo functions.
Direction suggested by mpi
OK mpi, visa
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 91aa0cbe4dd..1260d14d53e 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_timer.c,v 1.59 2017/10/25 12:38:21 job Exp $ */ +/* $OpenBSD: tcp_timer.c,v 1.60 2017/10/29 14:56:36 florian Exp $ */ /* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */ /* @@ -128,11 +128,13 @@ tcp_delack(void *arg) void tcp_slowtimo(void) { - NET_ASSERT_LOCKED(); + NET_LOCK(); tcp_maxidle = TCPTV_KEEPCNT * tcp_keepintvl; tcp_iss += TCP_ISSINCR2/PR_SLOWHZ; /* increment iss */ tcp_now++; /* for timestamps */ + + NET_UNLOCK(); } /* |