Commit f9f1db83 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: vmbus: Embed the state needed to close the channel

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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7d7c75cd
...@@ -569,6 +569,11 @@ struct vmbus_channel_msginfo { ...@@ -569,6 +569,11 @@ struct vmbus_channel_msginfo {
unsigned char msg[0]; unsigned char msg[0];
}; };
struct vmbus_close_msg {
struct vmbus_channel_msginfo info;
struct vmbus_channel_close_channel msg;
};
struct vmbus_channel { struct vmbus_channel {
struct list_head listentry; struct list_head listentry;
...@@ -601,6 +606,8 @@ struct vmbus_channel { ...@@ -601,6 +606,8 @@ struct vmbus_channel {
spinlock_t inbound_lock; spinlock_t inbound_lock;
struct workqueue_struct *controlwq; struct workqueue_struct *controlwq;
struct vmbus_close_msg close_msg;
/* Channel callback are invoked in this workqueue context */ /* Channel callback are invoked in this workqueue context */
/* HANDLE dataWorkQueue; */ /* HANDLE dataWorkQueue; */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment