[<prev] [next>] [day] [month] [year] [list]
Message-ID: <87zlbfbd6x.wl%chamas@h4.dion.ne.jp>
Date: Wed, 08 Jul 2009 20:56:38 +0900
From: Ken-ichirou MATSUZAWA <chamas@...dion.ne.jp>
To: netdev@...r.kernel.org
Cc: chamas@...dion.ne.jp
Subject: [PATCH] assume bridge as device, not subsystem in container
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists