1. 27 3月, 2018 38 次提交
  2. 26 3月, 2018 2 次提交
    • D
      Merge branch 'Drop-NETDEV_UNREGISTER_FINAL' · cb6219a2
      David S. Miller 提交于
      Kirill Tkhai says:
      
      ====================
      Drop NETDEV_UNREGISTER_FINAL (was unnamed)
      
      This series drops unused NETDEV_UNREGISTER_FINAL
      after some preparations.
      
      v2: New patch [2/3]. Use switch() in [1/3].
      
      The first version was acked by Jason Gunthorpe,
      and [1/3] was acked by David Ahern.
      
      Since there are differences to v1, I haven't added
      Acked-by tags of people. It would be nice, if you
      fill OK to tag v2 too.
      ====================
      Acked-by: NJason Gunthorpe <jgg@mellanox>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cb6219a2
    • K
      net: Drop NETDEV_UNREGISTER_FINAL · 070f2d7e
      Kirill Tkhai 提交于
      Last user is gone after bdf5bd7f "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: NKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      070f2d7e