Skip to content

Commit

Permalink
Staging: hv: vmbus: Embed the state needed to close the channel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 7d7c75c commit f9f1db8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/staging/hv/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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; */

Expand Down

0 comments on commit f9f1db8

Please sign in to comment.