diff options
author | glebius <glebius@FreeBSD.org> | 2006-06-06 08:05:27 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-06-06 08:05:27 +0000 |
commit | 62e2a7bdfd7f6ad31b95ef4fefa3267dd4417f4d (patch) | |
tree | 7b796e5e7ef4b5e9e5948b5cde9f575c028ce313 | |
parent | c4263f94b4ae63a203eb27950d65dc741969be92 (diff) | |
download | FreeBSD-src-62e2a7bdfd7f6ad31b95ef4fefa3267dd4417f4d.zip FreeBSD-src-62e2a7bdfd7f6ad31b95ef4fefa3267dd4417f4d.tar.gz |
Use NET_CALLOUT_MPSAFE for netgraph callout initializer.
-rw-r--r-- | sys/netgraph/netgraph.h | 2 | ||||
-rw-r--r-- | sys/netgraph/ng_base.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index 2e1802e..313eac8 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -1101,7 +1101,7 @@ int ng_send_fn1(node_p node, hook_p hook, ng_item_fn *fn, int ng_uncallout(struct callout *c, node_p node); int ng_callout(struct callout *c, node_p node, hook_p hook, int ticks, ng_item_fn *fn, void * arg1, int arg2); -#define ng_callout_init(c) callout_init(c, CALLOUT_MPSAFE) +#define ng_callout_init(c) callout_init(c, NET_CALLOUT_MPSAFE) /* Flags for netgraph functions. */ #define NG_NOFLAGS 0x00000000 /* no special options */ diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 27b1297..4dc58ee 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -3581,9 +3581,7 @@ ng_callout_trampoline(void *arg) { item_p item = arg; - NET_LOCK_GIANT(); ng_snd_item(item, 0); - NET_UNLOCK_GIANT(); } |