diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2012-06-04 06:42:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-04 13:50:38 -0400 |
commit | dc5cd894cace7bda4a743487a9f87d59a3f0a095 (patch) | |
tree | ecb62686a8cb1764b7ca49c61ef9dfc22eb6d8b9 /drivers/net/hyperv/hyperv_net.h | |
parent | 9ec0db71af04f4560e27a3c2f5a0411ba3155198 (diff) |
net/hyperv: Use wait_event on outstanding sends during device removal
Change the busy-waiting/udelay to wait_event on outstanding sends.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 4ffcd57b011b..2857ab078aac 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -478,6 +478,7 @@ struct netvsc_device { u32 nvsp_version; atomic_t num_outstanding_sends; + wait_queue_head_t wait_drain; bool start_remove; bool destroy; /* |