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)
commit6da7225f5a95ba68e3c6225c4051182bef30eed4
treeac4fc78355ad23c7d69e2d9be2ce37d3d18495eb
parent0a1275ca5128b84ffffc149960969ed351ae00eb
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