summaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_gif.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-07-19 14:20:53 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-07-19 14:20:53 +0000
commit5ee847d3ac9530cc0132b3fe16fa8063cd77e3aa (patch)
tree3bd297fbee234a2e1c20d56c0d53370c6ab32793 /sys/netgraph/ng_gif.c
parent519f677aff17ce417e74f2f2727313b5b3fed687 (diff)
Notes
Diffstat (limited to 'sys/netgraph/ng_gif.c')
-rw-r--r--sys/netgraph/ng_gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c
index f099d614d6a3..de2ded3e2946 100644
--- a/sys/netgraph/ng_gif.c
+++ b/sys/netgraph/ng_gif.c
@@ -561,8 +561,8 @@ ng_gif_mod_event(module_t mod, int event, void *data)
ng_gif_input_orphan_p = ng_gif_input_orphan;
/* Create nodes for any already-existing gif interfaces */
+ VNET_LIST_RLOCK_NOSLEEP();
IFNET_RLOCK();
- VNET_LIST_RLOCK();
VNET_FOREACH(vnet_iter) {
CURVNET_SET_QUIET(vnet_iter); /* XXX revisit quiet */
TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
@@ -571,8 +571,8 @@ ng_gif_mod_event(module_t mod, int event, void *data)
}
CURVNET_RESTORE();
}
- VNET_LIST_RUNLOCK();
IFNET_RUNLOCK();
+ VNET_LIST_RUNLOCK_NOSLEEP();
break;
case MOD_UNLOAD: