Skip to content

Commit

Permalink
Staging: hv: Move the definition of struct storvsc_request_extension
Browse files Browse the repository at this point in the history
In preperation for embedding struct storvsc_request_extension into
struct hv_storvsc_request, move the definition of
struct storvsc_request_extension.

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: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent 12cb12e commit bf587a1
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions drivers/staging/hv/storvsc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ enum storvsc_request_type{
UNKNOWN_TYPE,
};


struct storvsc_request_extension {
struct hv_storvsc_request *request;
struct hv_device *device;

/* Synchronize the request/response if needed */
int wait_condition;
wait_queue_head_t wait_event;

struct vstor_packet vstor_packet;
};

struct hv_storvsc_request {
enum storvsc_request_type type;
u32 host;
Expand Down Expand Up @@ -103,17 +115,6 @@ struct storvsc_device_info {
unsigned char target_id;
};

struct storvsc_request_extension {
struct hv_storvsc_request *request;
struct hv_device *device;

/* Synchronize the request/response if needed */
int wait_condition;
wait_queue_head_t wait_event;

struct vstor_packet vstor_packet;
};

/* A storvsc device is a device object that contains a vmbus channel */
struct storvsc_device {
struct hv_device *device;
Expand Down

0 comments on commit bf587a1

Please sign in to comment.