]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: synchronize netvsc_change_mtu()/netvsc_set_channels() with netvsc_remove()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 13 May 2016 11:55:24 +0000 (13:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:26:01 +0000 (13:26 -0400)
commit3ce0c86c1a88d837328db65d80706ffdf5216705
treeac4fc78355ad23c7d69e2d9be2ce37d3d18495eb
parent5b24b426c68434fbd779fe69b626cdc2e5a89516
hv_netvsc: synchronize netvsc_change_mtu()/netvsc_set_channels() with netvsc_remove()

When netvsc device is removed during mtu change or channels setup we get
into troubles as both paths are trying to remove the device. Synchronize
them with start_remove flag and rtnl lock.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c