Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249052
b: refs/heads/master
c: a617e39
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 20, 2011
1 parent 2b1e9ae commit d4cb3a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: 03068ff131c0a565e2cb26303a0df63467136723
refs/heads/master: a617e395de55762f337f4d9002a3408d7e9be381
13 changes: 11 additions & 2 deletions trunk/drivers/staging/hv/storvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ static void stor_vsc_on_io_completion(struct hv_device *device,
struct hv_storvsc_request *request)
{
struct storvsc_device *stor_device;
struct vstor_packet *stor_pkt;

stor_device = must_get_stor_device(device);
if (!stor_device) {
Expand All @@ -287,19 +288,24 @@ static void stor_vsc_on_io_completion(struct hv_device *device,
return;
}

DPRINT_DBG(STORVSC, "IO_COMPLETE_OPERATION - request %p "
DPRINT_DBG(STORVSC, "IO_COMPLETE_OPERATION - request %p "
"completed bytes xfer %u", request,
vstor_packet->vm_srb.data_transfer_length);

stor_pkt = &request->vstor_packet;


/* Copy over the status...etc */
stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status;
stor_pkt->vm_srb.srb_status = vstor_packet->vm_srb.srb_status;
stor_pkt->vm_srb.sense_info_length =
vstor_packet->vm_srb.sense_info_length;

if (vstor_packet->vm_srb.scsi_status != 0 ||
vstor_packet->vm_srb.srb_status != 1) {
DPRINT_WARN(STORVSC,
"cmd 0x%x scsi status 0x%x srb status 0x%x\n",
vstor_packet->vm_srb.cdb[0],
stor_pkt->vm_srb.cdb[0],
vstor_packet->vm_srb.scsi_status,
vstor_packet->vm_srb.srb_status);
}
Expand All @@ -319,6 +325,8 @@ static void stor_vsc_on_io_completion(struct hv_device *device,
}
}

stor_pkt->vm_srb.data_transfer_length =
vstor_packet->vm_srb.data_transfer_length;

request->on_io_completion(request);

Expand Down Expand Up @@ -535,6 +543,7 @@ int stor_vsc_on_io_request(struct hv_device *device,

request->device = device;


vstor_packet->flags |= REQUEST_COMPLETION_FLAG;

vstor_packet->vm_srb.length = sizeof(struct vmscsi_request);
Expand Down

0 comments on commit d4cb3a8

Please sign in to comment.