net/hyperv: Adding cancellation to ensure rndis filter is closed
authorWenqi Ma <wenqi_ma@trendmicro.com.cn>
Thu, 19 Apr 2012 00:39:37 +0000 (00:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:38:10 +0000 (15:38 -0400)
Although the network interface is down, the RX packets number which
could be observed by ifconfig may keep on increasing.

This is because the WORK scheduled in netvsc_set_multicast_list()
may be executed after netvsc_close(). That means the rndis filter
may be re-enabled by do_set_multicast() even if it was closed by
netvsc_close().

By canceling possible WORK before close the rndis filter, the issue
could be never happened.

Signed-off-by: Wenqi Ma <wenqi_ma@trendmicro.com.cn>
Reviewed-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found