]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: hv: Move sense_buffer field
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 28 Mar 2011 16:33:39 +0000 (09:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 04:55:10 +0000 (21:55 -0700)
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>
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/storvsc.c
drivers/staging/hv/storvsc_api.h
drivers/staging/hv/storvsc_drv.c

index 838567defb98ef4b0e53f2773179ac02c250708c..54c966f31a3cab9baccacb39acc32f991c32fb7a 100644 (file)
@@ -952,7 +952,7 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req,
 
        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);
index b322f863dbd25ac9a8c83b3038cd740ca850e89f..33943ed951781205f7236bca401ce806657aad6d 100644 (file)
@@ -314,7 +314,7 @@ static void stor_vsc_on_io_completion(struct hv_device *device,
                                    "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);
 
index 3eccc277ba480a8699913571760ab6ee5c6e629c..fd9165f674dabed35f047aae57e02c9b259b3cff 100644 (file)
@@ -62,6 +62,8 @@ struct storvsc_request_extension {
        /* Synchronize the request/response if needed */
        struct completion wait_event;
 
+       unsigned char *sense_buffer;
+
        struct vstor_packet vstor_packet;
 };
 
@@ -69,8 +71,6 @@ struct hv_storvsc_request {
        u32 status;
        u32 bytes_xfer;
 
-       unsigned char *sense_buffer;
-
        void *context;
 
        void (*on_io_completion)(struct hv_storvsc_request *request);
index bc435d6cc49366a531d038f8d25e1f2fafab6a86..3a999d057b4327ef8f0f6cf54a4e7ef030e95f0f 100644 (file)
@@ -784,7 +784,7 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd,
 
        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);