Use NET_CALLOUT_MPSAFE for netgraph callout initializer.
This commit is contained in:
parent
9297f2a72e
commit
27e216594b
@ -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 */
|
||||
|
@ -3581,9 +3581,7 @@ ng_callout_trampoline(void *arg)
|
||||
{
|
||||
item_p item = arg;
|
||||
|
||||
NET_LOCK_GIANT();
|
||||
ng_snd_item(item, 0);
|
||||
NET_UNLOCK_GIANT();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user