diff options
author | Kirill Tkhai | 2018-03-19 14:39:05 +0300 |
---|---|---|
committer | David S. Miller | 2018-03-22 11:11:29 -0400 |
commit | 1ae7762760736d4f7e4ea43e9ed03a608685c3d9 (patch) | |
tree | 8e99e42370309af21b14a0c15d88e1cc036a76aa /net/can/af_can.c | |
parent | 454bfe97837a3e3a5a15b768f8293f228e0f2f06 (diff) |
net: Convert can_pernet_ops
These pernet_operations create and destroy /proc entries
and cancel per-net timer.
Also, there are unneed iterations over empty list of net
devices, since all net devices must be already moved
to init_net or unregistered by default_device_ops. This
already was mentioned here:
https://marc.info/?l=linux-can&m=150169589119335&w=2
So, it looks safe to make them async.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can/af_can.c')
-rw-r--r-- | net/can/af_can.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c index 6da324550eec..e899970398a1 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -954,6 +954,7 @@ static struct notifier_block can_netdev_notifier __read_mostly = { static struct pernet_operations can_pernet_ops __read_mostly = { .init = can_pernet_init, .exit = can_pernet_exit, + .async = true, }; static __init int can_init(void) |