]> git.baikalelectronics.ru Git - kernel.git/commit
ovs: Remove rtnl_lock() from ovs_exit_net()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Thu, 29 Mar 2018 16:21:09 +0000 (19:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Mar 2018 17:47:54 +0000 (13:47 -0400)
commit3fb7f8e60881b27b69c15d4f0af2c83bcc7940c8
tree82ab9ffcb134c75ed82d5f8e86c86e6d76318f41
parenta3cd8c93aea0b5ff005a6a232b2a8ebe1aaef878
ovs: Remove rtnl_lock() from ovs_exit_net()

Here we iterate for_each_net() and removes
vport from alive net to the exiting net.

ovs_net::dps are protected by ovs_mutex(),
and the others, who change it (ovs_dp_cmd_new(),
__dp_destroy()) also take it.
The same with datapath::ports list.

So, we remove rtnl_lock() here.

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