]> asedeno.scripts.mit.edu Git - linux.git/commit
net: Drop NETDEV_UNREGISTER_FINAL
authorKirill Tkhai <ktkhai@virtuozzo.com>
Fri, 23 Mar 2018 16:47:39 +0000 (19:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 15:34:00 +0000 (11:34 -0400)
commit070f2d7e264acd6316fc24092b7f51a18c75ac9c
tree53f84339a2a09462d2f664c8276010de414e4a1c
parent3e0c2dbfea28dd29a3316a4c9774947425a9facd
net: Drop NETDEV_UNREGISTER_FINAL

Last user is gone after bdf5bd7f2132 "rds: tcp: remove
register_netdevice_notifier infrastructure.", so we can
remove this netdevice command. This allows to delete
rtnl_lock() in netdev_run_todo(), which is hot path for
net namespace unregistration.

dev_change_net_namespace() and netdev_wait_allrefs()
have rcu_barrier() before NETDEV_UNREGISTER_FINAL call,
and the source commits say they were introduced to
delemit the call with NETDEV_UNREGISTER, but this patch
leaves them on the places, since they require additional
analysis, whether we need in them for something else.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/qedr/main.c
include/linux/netdevice.h
include/rdma/ib_verbs.h
net/core/dev.c