summaryrefslogtreecommitdiffstats
path: root/drivers/hv/connection.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2015-04-23 00:31:32 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 15:18:24 -0400
commit2db84eff127e3f4b3635edc589cd6a56db8755a3 (patch)
tree2890e6494ebeb52bfdbaa182a9e58d3f2734d57e /drivers/hv/connection.c
parentdb9ba2088f6507fee370904f02db1eb9b49bd088 (diff)
Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state
Implement the protocol for tearing down the monitor state established with the host. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Tested-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/connection.c')
-rw-r--r--drivers/hv/connection.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c
index b27220a425f4..acd50e9d666a 100644
--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
@@ -227,6 +227,11 @@ cleanup:
227 227
228void vmbus_disconnect(void) 228void vmbus_disconnect(void)
229{ 229{
230 /*
231 * First send the unload request to the host.
232 */
233 vmbus_initiate_unload();
234
230 if (vmbus_connection.work_queue) { 235 if (vmbus_connection.work_queue) {
231 drain_workqueue(vmbus_connection.work_queue); 236 drain_workqueue(vmbus_connection.work_queue);
232 destroy_workqueue(vmbus_connection.work_queue); 237 destroy_workqueue(vmbus_connection.work_queue);