]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: hv: vmbus: Embed the state needed to close the channel
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 6 Jun 2011 22:49:58 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:45:59 +0000 (13:45 -0700)
Now, embed the state needed to close the channel - so we would not have to
allocate memory in the channel close path.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/hyperv.h

index 93bbeab6d24df4dd0abd35e4f2daf98230253e54..1747a2404f6c8df42c82c98e87c49b045e048759 100644 (file)
@@ -569,6 +569,11 @@ struct vmbus_channel_msginfo {
        unsigned char msg[0];
 };
 
+struct vmbus_close_msg {
+       struct vmbus_channel_msginfo info;
+       struct vmbus_channel_close_channel msg;
+};
+
 struct vmbus_channel {
        struct list_head listentry;
 
@@ -601,6 +606,8 @@ struct vmbus_channel {
        spinlock_t inbound_lock;
        struct workqueue_struct *controlwq;
 
+       struct vmbus_close_msg close_msg;
+
        /* Channel callback are invoked in this workqueue context */
        /* HANDLE dataWorkQueue; */