]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
hyperv: Move state setting for link query
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 4 Mar 2014 22:11:06 +0000 (14:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 01:40:25 +0000 (20:40 -0500)
commit1b07da516ee25250f458c76c012ebe4cd677a84f
treeac4eef27d05f7b53022a2274292b40c7d0733d0e
parent48330e08fa168395b9fd9f369f06cca1df204361
hyperv: Move state setting for link query

It moves the state setting for query into rndis_filter_receive_response().
All callbacks including query-complete and status-callback are synchronized
by channel->inbound_lock. This prevents pentential race between them.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c