In preparation for consolidating all I/O request state,
move sense_buffer field from struct hv_storvsc_request
to 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>
memcpy(vm_srb->cdb, blkvsc_req->cmnd, vm_srb->cdb_length);
- storvsc_req->sense_buffer = blkvsc_req->sense_buffer;
+ storvsc_req->extension.sense_buffer = blkvsc_req->sense_buffer;
ret = storvsc_drv_obj->on_io_request(blkdev->device_ctx,
&blkvsc_req->request);
"valid - len %d\n", request_ext,
vstor_packet->vm_srb.sense_info_length);
- memcpy(request->sense_buffer,
+ memcpy(request->extension.sense_buffer,
vstor_packet->vm_srb.sense_data,
vstor_packet->vm_srb.sense_info_length);
/* Synchronize the request/response if needed */
struct completion wait_event;
+ unsigned char *sense_buffer;
+
struct vstor_packet vstor_packet;
};
u32 status;
u32 bytes_xfer;
- unsigned char *sense_buffer;
-
void *context;
void (*on_io_completion)(struct hv_storvsc_request *request);
memcpy(vm_srb->cdb, scmnd->cmnd, vm_srb->cdb_length);
- request->sense_buffer = scmnd->sense_buffer;
+ request->extension.sense_buffer = scmnd->sense_buffer;
request->data_buffer.len = scsi_bufflen(scmnd);