]> git.baikalelectronics.ru Git - kernel.git/commit
net: Convert can_pernet_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Mar 2018 11:39:05 +0000 (14:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:11:29 +0000 (11:11 -0400)
commita79a975b559fb03d8ad88ae74871658eb8496ee9
tree8e99e42370309af21b14a0c15d88e1cc036a76aa
parentb817f81ea2f20d894202c3a0cadaef46b75103d6
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>
net/can/af_can.c