OSDN Git Service

net: Convert cangw_pernet_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 5 Mar 2018 11:31:19 +0000 (14:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 15:48:27 +0000 (10:48 -0500)
commit111da7adc1276d44d20c3973f4b39d62f83df056
tree26bf121e301d9824f457df07a858728f80227d83
parentd217472410a033cdef5b8fba4393b466ee3c3bbc
net: Convert cangw_pernet_ops

These pernet_operations have a deal with cgw_list,
and the rest of accesses are made under rtnl_lock().
The only exception is cgw_dump_jobs(), which is
accessed under rcu_read_lock(). cgw_dump_jobs() is
called on netlink request, and it does not seem,
foreign pernet_operations want to send a net such
the messages. So, we mark them as async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/gw.c