Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288940
b: refs/heads/master
c: 93a1bf4
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent 50f4eab commit 6ba4f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2707388c7c5c6edf4e646a9013f6b7aa195fb174
refs/heads/master: 93a1bf4dd018af2a4931b916dd46fdfb963fa4ad
7 changes: 3 additions & 4 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ struct hv_storvsc_request {
struct completion wait_event;

unsigned char *sense_buffer;
void *context;
struct storvsc_cmd_request *cmd;
struct hv_multipage_buffer data_buffer;

struct vstor_packet vstor_packet;
Expand Down Expand Up @@ -785,8 +785,7 @@ static int storvsc_channel_init(struct hv_device *device)

static void storvsc_command_completion(struct hv_storvsc_request *request)
{
struct storvsc_cmd_request *cmd_request =
(struct storvsc_cmd_request *)request->context;
struct storvsc_cmd_request *cmd_request = request->cmd;
struct scsi_cmnd *scmnd = cmd_request->cmd;
struct hv_host_device *host_dev = shost_priv(scmnd->device->host);
void (*scsi_done_fn)(struct scsi_cmnd *);
Expand Down Expand Up @@ -1315,7 +1314,7 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd)
break;
}

request->context = cmd_request;/* scmnd; */
request->cmd = cmd_request;

vm_srb->port_number = host_dev->port;
vm_srb->path_id = scmnd->device->channel;
Expand Down

0 comments on commit 6ba4f71

Please sign in to comment.