search for: wait_condit

Displaying 10 results from an estimated 10 matches for "wait_condit".

2011 Feb 11
1
[PATCH 2/3]: Staging: hv: Use native wait primitives
...channel *)openInfo->msg; openMsg->header.msgtype = CHANNELMSG_OPENCHANNEL; @@ -280,8 +278,15 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, goto Cleanup; } - /* FIXME: Need to time-out here */ - osd_waitevent_wait(openInfo->waitevent); + openInfo->wait_condition = 0; + wait_event_timeout(openInfo->waitevent, + openInfo->wait_condition, + msecs_to_jiffies(1000)); + if (openInfo->wait_condition == 0) { + err = -ETIMEDOUT; + goto errorout; + } + if (openInfo->response.open_result.status == 0) DPRINT_INFO(VMBUS, "channel <%p...
2011 Feb 11
1
[PATCH 2/3]: Staging: hv: Use native wait primitives
...channel *)openInfo->msg; openMsg->header.msgtype = CHANNELMSG_OPENCHANNEL; @@ -280,8 +278,15 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, goto Cleanup; } - /* FIXME: Need to time-out here */ - osd_waitevent_wait(openInfo->waitevent); + openInfo->wait_condition = 0; + wait_event_timeout(openInfo->waitevent, + openInfo->wait_condition, + msecs_to_jiffies(1000)); + if (openInfo->wait_condition == 0) { + err = -ETIMEDOUT; + goto errorout; + } + if (openInfo->response.open_result.status == 0) DPRINT_INFO(VMBUS, "channel <%p...
2011 Mar 29
9
[PATCH 00/07] Remove and replace all un-needed DPRINT and printk
This patch set removes all un-needed DPRINT and printk calls and replaces the remaining ones with the correct pr_, dev_ and netdev_ calls from hv_vmbus, hv_netvsc, hv_timesource and hv_utils. Several DPRINTS are remaining that will be cleaned up in my next set of patches. They deal with printing out certain debugging that will be implemented slightly differently. The remaining hv_storvsc and
2011 Mar 29
9
[PATCH 00/07] Remove and replace all un-needed DPRINT and printk
This patch set removes all un-needed DPRINT and printk calls and replaces the remaining ones with the correct pr_, dev_ and netdev_ calls from hv_vmbus, hv_netvsc, hv_timesource and hv_utils. Several DPRINTS are remaining that will be cleaned up in my next set of patches. They deal with printing out certain debugging that will be implemented slightly differently. The remaining hv_storvsc and
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...s/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c @@ -38,7 +38,7 @@ struct storvsc_request_extension { /* LIST_ENTRY ListEntry; */ struct hv_storvsc_request *request; - struct vm_device *device; + struct hyperv_device *device; /* Synchronize the request/response if needed */ int wait_condition; @@ -49,7 +49,7 @@ struct storvsc_request_extension { /* A storvsc device is a device object that contains a vmbus channel */ struct storvsc_device { - struct vm_device *device; + struct hyperv_device *device; /* 0 indicates the device is being destroyed */ atomic_t ref_count; @@ -85,7...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...s/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c @@ -38,7 +38,7 @@ struct storvsc_request_extension { /* LIST_ENTRY ListEntry; */ struct hv_storvsc_request *request; - struct vm_device *device; + struct hyperv_device *device; /* Synchronize the request/response if needed */ int wait_condition; @@ -49,7 +49,7 @@ struct storvsc_request_extension { /* A storvsc device is a device object that contains a vmbus channel */ struct storvsc_device { - struct vm_device *device; + struct hyperv_device *device; /* 0 indicates the device is being destroyed */ atomic_t ref_count; @@ -85,7...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...orvsc_api.h" #include "vmbus_packet_format.h" @@ -37,7 +38,7 @@ struct storvsc_request_extension { /* LIST_ENTRY ListEntry; */ struct hv_storvsc_request *request; - struct hv_device *device; + struct vm_device *device; /* Synchronize the request/response if needed */ int wait_condition; @@ -48,7 +49,7 @@ struct storvsc_request_extension { /* A storvsc device is a device object that contains a vmbus channel */ struct storvsc_device { - struct hv_device *device; + struct vm_device *device; /* 0 indicates the device is being destroyed */ atomic_t ref_count; @@ -84,7 +85...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...orvsc_api.h" #include "vmbus_packet_format.h" @@ -37,7 +38,7 @@ struct storvsc_request_extension { /* LIST_ENTRY ListEntry; */ struct hv_storvsc_request *request; - struct hv_device *device; + struct vm_device *device; /* Synchronize the request/response if needed */ int wait_condition; @@ -48,7 +49,7 @@ struct storvsc_request_extension { /* A storvsc device is a device object that contains a vmbus channel */ struct storvsc_device { - struct hv_device *device; + struct vm_device *device; /* 0 indicates the device is being destroyed */ atomic_t ref_count; @@ -84,7 +85...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...c_api.h" #include "vmbus_packet_format.h" @@ -37,7 +38,7 @@ struct storvsc_request_extension { /* LIST_ENTRY ListEntry; */ struct hv_storvsc_request *request; - struct hv_device *device; + struct hyperv_device *device; /* Synchronize the request/response if needed */ int wait_condition; @@ -48,7 +49,7 @@ struct storvsc_request_extension { /* A storvsc device is a device object that contains a vmbus channel */ struct storvsc_device { - struct hv_device *device; + struct hyperv_device *device; /* 0 indicates the device is being destroyed */ atomic_t ref_count; @@ -84,7...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...c_api.h" #include "vmbus_packet_format.h" @@ -37,7 +38,7 @@ struct storvsc_request_extension { /* LIST_ENTRY ListEntry; */ struct hv_storvsc_request *request; - struct hv_device *device; + struct hyperv_device *device; /* Synchronize the request/response if needed */ int wait_condition; @@ -48,7 +49,7 @@ struct storvsc_request_extension { /* A storvsc device is a device object that contains a vmbus channel */ struct storvsc_device { - struct hv_device *device; + struct hyperv_device *device; /* 0 indicates the device is being destroyed */ atomic_t ref_count; @@ -84,7...