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 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
