summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/vmbus_private.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-02-11 09:59:43 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 13:11:03 -0800
commit0c3b7b2f75158f9420ceeb87d5924bdbd8d0304a (patch)
treedf9a27e92c5b3c2fea857e9fed706513fb9f99b4 /drivers/staging/hv/vmbus_private.h
parentdf3493e0b3ba72f9b6192a91b24197cac41ce557 (diff)
Staging: hv: Use native wait primitives
In preperation for getting rid of the osd layer; change the code to use native wait interfaces. As part of this, fixed the buggy implementation in the osd_wait_primitive where the condition was cleared potentially after the condition was signalled. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/vmbus_private.h')
-rw-r--r--drivers/staging/hv/vmbus_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/hv/vmbus_private.h b/drivers/staging/hv/vmbus_private.h
index 004d8de1c7d..9f505c44c60 100644
--- a/drivers/staging/hv/vmbus_private.h
+++ b/drivers/staging/hv/vmbus_private.h
@@ -91,7 +91,8 @@ struct vmbus_msginfo {
struct list_head msglist_entry;
/* Synchronize the request/response if needed */
- struct osd_waitevent *wait_event;
+ int wait_condition;
+ wait_queue_head_t wait_event;
/* The message itself */
unsigned char msg[0];