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/kern | |
parent | c707a087273faf875fbe063929a72e595ec615dc (diff) |
Move NET_{,UN}LOCK into individual slowtimo functions.
Direction suggested by mpi
OK mpi, visa
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_domain.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 4cfbe5de4ff..522fe1a9f01 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_domain.c,v 1.53 2017/10/09 08:35:38 mpi Exp $ */ +/* $OpenBSD: uipc_domain.c,v 1.54 2017/10/29 14:56:36 florian Exp $ */ /* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */ /* @@ -238,13 +238,11 @@ pfslowtimo(void *arg) struct protosw *pr; int i; - NET_LOCK(); for (i = 0; (dp = domains[i]) != NULL; i++) { for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) if (pr->pr_slowtimo) (*pr->pr_slowtimo)(); } - NET_UNLOCK(); timeout_add_msec(to, 500); } @@ -256,12 +254,10 @@ pffasttimo(void *arg) struct protosw *pr; int i; - NET_LOCK(); for (i = 0; (dp = domains[i]) != NULL; i++) { for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) if (pr->pr_fasttimo) (*pr->pr_fasttimo)(); } - NET_UNLOCK(); timeout_add_msec(to, 200); } |