Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state
[firefly-linux-kernel-4.4.55.git] / drivers / hv / connection.c
index b27220a425f4a44b6b1143f39017998f1b77533a..acd50e9d666ae96a56f003af725e32b36a6e333d 100644 (file)
@@ -227,6 +227,11 @@ cleanup:
 
 void vmbus_disconnect(void)
 {
+       /*
+        * First send the unload request to the host.
+        */
+       vmbus_initiate_unload();
+
        if (vmbus_connection.work_queue) {
                drain_workqueue(vmbus_connection.work_queue);
                destroy_workqueue(vmbus_connection.work_queue);