]> git.baikalelectronics.ru Git - kernel.git/commit
rds: tcp: remove register_netdevice_notifier infrastructure.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 19 Mar 2018 13:52:48 +0000 (06:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:21:45 +0000 (11:21 -0400)
commitfd40e72e73802a77e100bfed804b0fe511220eb1
tree12633ea0651bab430f07624ec38878c843e9f46c
parentfdac4d6378823579923663b03b2119721ce69e3e
rds: tcp: remove register_netdevice_notifier infrastructure.

The netns deletion path does not need to wait for all net_devices
to be unregistered before dismantling rds_tcp state for the netns
(we are able to dismantle this state on module unload even when
all net_devices are active so there is no dependency here).

This patch removes code related to netdevice notifiers and
refactors all the code needed to dismantle rds_tcp state
into a ->exit callback for the pernet_operations used with
register_pernet_device().

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c