DORMANTno replies

[PATCH] assume bridge as device, not subsystem in container

From: Ken-ichirou MATSUZAWA <hidden>
Date: 2009-07-08 11:56:39
Subsystem: ethernet bridge, networking [general], the rest · Maintainers: Nikolay Aleksandrov, Ido Schimmel, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

 Hello,

exit function will called each subsystem, device. when exited from
container. The function call order is device first. bridge is
registered as subsystem but depends on subsystem, this causes some
problems when exit from container without deleting bridge created
in the container.

could we assume bridge as device in container?

Signed-off-by: Ken-ichirou MATSUZAWA
---
 net/bridge/br.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/bridge/br.c b/net/bridge/br.c
index e1241c7..c35e9ad 100644
--- a/net/bridge/br.c
+++ b/net/bridge/br.c
@@ -46,7 +46,7 @@ static int __init br_init(void)
 	if (err)
 		goto err_out;
 
-	err = register_pernet_subsys(&br_net_ops);
+	err = register_pernet_device(&br_net_ops);
 	if (err)
 		goto err_out1;
 
@@ -91,7 +91,7 @@ static void __exit br_deinit(void)
 	unregister_netdevice_notifier(&br_device_notifier);
 	brioctl_set(NULL);
 
-	unregister_pernet_subsys(&br_net_ops);
+	unregister_pernet_device(&br_net_ops);
 
 	rcu_barrier(); /* Wait for completion of call_rcu()'s */
 
-- 
1.5.6.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help