diff options
author | Hank Janssen <hjanssen@microsoft.com> | 2010-12-06 15:26:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-06 19:11:07 -0500 |
commit | 8a046024a7cbbe9e4c16f4e34dda0f0dbcbc6723 (patch) | |
tree | 61e16c0da986f0f55792023e82b11d1ab4feaa43 /drivers/staging/hv/blkvsc_drv.c | |
parent | d2aaba455fed75f231fe30fccfd25bcb8d8ff305 (diff) |
staging: hv: Convert camel case struct fields in storvsc_api.h to lowercase
Convert camel case struct fields in vstorage.h to lowercase
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/blkvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/blkvsc_drv.c | 115 |
1 files changed, 60 insertions, 55 deletions
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index 3f81ca59106..d65d69e3ebc 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c | |||
@@ -177,13 +177,13 @@ static int blkvsc_drv_init(int (*drv_init)(struct hv_driver *drv)) | |||
177 | struct driver_context *drv_ctx = &g_blkvsc_drv.drv_ctx; | 177 | struct driver_context *drv_ctx = &g_blkvsc_drv.drv_ctx; |
178 | int ret; | 178 | int ret; |
179 | 179 | ||
180 | storvsc_drv_obj->RingBufferSize = blkvsc_ringbuffer_size; | 180 | storvsc_drv_obj->ring_buffer_size = blkvsc_ringbuffer_size; |
181 | 181 | ||
182 | /* Callback to client driver to complete the initialization */ | 182 | /* Callback to client driver to complete the initialization */ |
183 | drv_init(&storvsc_drv_obj->Base); | 183 | drv_init(&storvsc_drv_obj->base); |
184 | 184 | ||
185 | drv_ctx->driver.name = storvsc_drv_obj->Base.name; | 185 | drv_ctx->driver.name = storvsc_drv_obj->base.name; |
186 | memcpy(&drv_ctx->class_id, &storvsc_drv_obj->Base.deviceType, | 186 | memcpy(&drv_ctx->class_id, &storvsc_drv_obj->base.deviceType, |
187 | sizeof(struct hv_guid)); | 187 | sizeof(struct hv_guid)); |
188 | 188 | ||
189 | drv_ctx->probe = blkvsc_probe; | 189 | drv_ctx->probe = blkvsc_probe; |
@@ -230,8 +230,8 @@ static void blkvsc_drv_exit(void) | |||
230 | device_unregister(current_dev); | 230 | device_unregister(current_dev); |
231 | } | 231 | } |
232 | 232 | ||
233 | if (storvsc_drv_obj->Base.OnCleanup) | 233 | if (storvsc_drv_obj->base.OnCleanup) |
234 | storvsc_drv_obj->Base.OnCleanup(&storvsc_drv_obj->Base); | 234 | storvsc_drv_obj->base.OnCleanup(&storvsc_drv_obj->base); |
235 | 235 | ||
236 | vmbus_child_driver_unregister(drv_ctx); | 236 | vmbus_child_driver_unregister(drv_ctx); |
237 | 237 | ||
@@ -262,7 +262,7 @@ static int blkvsc_probe(struct device *device) | |||
262 | 262 | ||
263 | DPRINT_DBG(BLKVSC_DRV, "blkvsc_probe - enter"); | 263 | DPRINT_DBG(BLKVSC_DRV, "blkvsc_probe - enter"); |
264 | 264 | ||
265 | if (!storvsc_drv_obj->Base.OnDeviceAdd) { | 265 | if (!storvsc_drv_obj->base.OnDeviceAdd) { |
266 | DPRINT_ERR(BLKVSC_DRV, "OnDeviceAdd() not set"); | 266 | DPRINT_ERR(BLKVSC_DRV, "OnDeviceAdd() not set"); |
267 | ret = -1; | 267 | ret = -1; |
268 | goto Cleanup; | 268 | goto Cleanup; |
@@ -284,7 +284,7 @@ static int blkvsc_probe(struct device *device) | |||
284 | 284 | ||
285 | blkdev->request_pool = kmem_cache_create(dev_name(&device_ctx->device), | 285 | blkdev->request_pool = kmem_cache_create(dev_name(&device_ctx->device), |
286 | sizeof(struct blkvsc_request) + | 286 | sizeof(struct blkvsc_request) + |
287 | storvsc_drv_obj->RequestExtSize, 0, | 287 | storvsc_drv_obj->request_ext_size, 0, |
288 | SLAB_HWCACHE_ALIGN, NULL); | 288 | SLAB_HWCACHE_ALIGN, NULL); |
289 | if (!blkdev->request_pool) { | 289 | if (!blkdev->request_pool) { |
290 | ret = -ENOMEM; | 290 | ret = -ENOMEM; |
@@ -293,7 +293,7 @@ static int blkvsc_probe(struct device *device) | |||
293 | 293 | ||
294 | 294 | ||
295 | /* Call to the vsc driver to add the device */ | 295 | /* Call to the vsc driver to add the device */ |
296 | ret = storvsc_drv_obj->Base.OnDeviceAdd(device_obj, &device_info); | 296 | ret = storvsc_drv_obj->base.OnDeviceAdd(device_obj, &device_info); |
297 | if (ret != 0) { | 297 | if (ret != 0) { |
298 | DPRINT_ERR(BLKVSC_DRV, "unable to add blkvsc device"); | 298 | DPRINT_ERR(BLKVSC_DRV, "unable to add blkvsc device"); |
299 | goto Cleanup; | 299 | goto Cleanup; |
@@ -301,9 +301,9 @@ static int blkvsc_probe(struct device *device) | |||
301 | 301 | ||
302 | blkdev->device_ctx = device_ctx; | 302 | blkdev->device_ctx = device_ctx; |
303 | /* this identified the device 0 or 1 */ | 303 | /* this identified the device 0 or 1 */ |
304 | blkdev->target = device_info.TargetId; | 304 | blkdev->target = device_info.target_id; |
305 | /* this identified the ide ctrl 0 or 1 */ | 305 | /* this identified the ide ctrl 0 or 1 */ |
306 | blkdev->path = device_info.PathId; | 306 | blkdev->path = device_info.path_id; |
307 | 307 | ||
308 | dev_set_drvdata(device, blkdev); | 308 | dev_set_drvdata(device, blkdev); |
309 | 309 | ||
@@ -391,7 +391,7 @@ static int blkvsc_probe(struct device *device) | |||
391 | return ret; | 391 | return ret; |
392 | 392 | ||
393 | Remove: | 393 | Remove: |
394 | storvsc_drv_obj->Base.OnDeviceRemove(device_obj); | 394 | storvsc_drv_obj->base.OnDeviceRemove(device_obj); |
395 | 395 | ||
396 | Cleanup: | 396 | Cleanup: |
397 | if (blkdev) { | 397 | if (blkdev) { |
@@ -459,9 +459,9 @@ static int blkvsc_do_flush(struct block_device_context *blkdev) | |||
459 | blkvsc_req->req = NULL; | 459 | blkvsc_req->req = NULL; |
460 | blkvsc_req->write = 0; | 460 | blkvsc_req->write = 0; |
461 | 461 | ||
462 | blkvsc_req->request.DataBuffer.PfnArray[0] = 0; | 462 | blkvsc_req->request.data_buffer.PfnArray[0] = 0; |
463 | blkvsc_req->request.DataBuffer.Offset = 0; | 463 | blkvsc_req->request.data_buffer.Offset = 0; |
464 | blkvsc_req->request.DataBuffer.Length = 0; | 464 | blkvsc_req->request.data_buffer.Length = 0; |
465 | 465 | ||
466 | blkvsc_req->cmnd[0] = SYNCHRONIZE_CACHE; | 466 | blkvsc_req->cmnd[0] = SYNCHRONIZE_CACHE; |
467 | blkvsc_req->cmd_len = 10; | 467 | blkvsc_req->cmd_len = 10; |
@@ -506,9 +506,9 @@ static int blkvsc_do_inquiry(struct block_device_context *blkdev) | |||
506 | blkvsc_req->req = NULL; | 506 | blkvsc_req->req = NULL; |
507 | blkvsc_req->write = 0; | 507 | blkvsc_req->write = 0; |
508 | 508 | ||
509 | blkvsc_req->request.DataBuffer.PfnArray[0] = page_to_pfn(page_buf); | 509 | blkvsc_req->request.data_buffer.PfnArray[0] = page_to_pfn(page_buf); |
510 | blkvsc_req->request.DataBuffer.Offset = 0; | 510 | blkvsc_req->request.data_buffer.Offset = 0; |
511 | blkvsc_req->request.DataBuffer.Length = 64; | 511 | blkvsc_req->request.data_buffer.Length = 64; |
512 | 512 | ||
513 | blkvsc_req->cmnd[0] = INQUIRY; | 513 | blkvsc_req->cmnd[0] = INQUIRY; |
514 | blkvsc_req->cmnd[1] = 0x1; /* Get product data */ | 514 | blkvsc_req->cmnd[1] = 0x1; /* Get product data */ |
@@ -593,9 +593,9 @@ static int blkvsc_do_read_capacity(struct block_device_context *blkdev) | |||
593 | blkvsc_req->req = NULL; | 593 | blkvsc_req->req = NULL; |
594 | blkvsc_req->write = 0; | 594 | blkvsc_req->write = 0; |
595 | 595 | ||
596 | blkvsc_req->request.DataBuffer.PfnArray[0] = page_to_pfn(page_buf); | 596 | blkvsc_req->request.data_buffer.PfnArray[0] = page_to_pfn(page_buf); |
597 | blkvsc_req->request.DataBuffer.Offset = 0; | 597 | blkvsc_req->request.data_buffer.Offset = 0; |
598 | blkvsc_req->request.DataBuffer.Length = 8; | 598 | blkvsc_req->request.data_buffer.Length = 8; |
599 | 599 | ||
600 | blkvsc_req->cmnd[0] = READ_CAPACITY; | 600 | blkvsc_req->cmnd[0] = READ_CAPACITY; |
601 | blkvsc_req->cmd_len = 16; | 601 | blkvsc_req->cmd_len = 16; |
@@ -614,7 +614,7 @@ static int blkvsc_do_read_capacity(struct block_device_context *blkdev) | |||
614 | wait_event_interruptible(blkvsc_req->wevent, blkvsc_req->cond); | 614 | wait_event_interruptible(blkvsc_req->wevent, blkvsc_req->cond); |
615 | 615 | ||
616 | /* check error */ | 616 | /* check error */ |
617 | if (blkvsc_req->request.Status) { | 617 | if (blkvsc_req->request.status) { |
618 | scsi_normalize_sense(blkvsc_req->sense_buffer, | 618 | scsi_normalize_sense(blkvsc_req->sense_buffer, |
619 | SCSI_SENSE_BUFFERSIZE, &sense_hdr); | 619 | SCSI_SENSE_BUFFERSIZE, &sense_hdr); |
620 | 620 | ||
@@ -670,9 +670,9 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev) | |||
670 | blkvsc_req->req = NULL; | 670 | blkvsc_req->req = NULL; |
671 | blkvsc_req->write = 0; | 671 | blkvsc_req->write = 0; |
672 | 672 | ||
673 | blkvsc_req->request.DataBuffer.PfnArray[0] = page_to_pfn(page_buf); | 673 | blkvsc_req->request.data_buffer.PfnArray[0] = page_to_pfn(page_buf); |
674 | blkvsc_req->request.DataBuffer.Offset = 0; | 674 | blkvsc_req->request.data_buffer.Offset = 0; |
675 | blkvsc_req->request.DataBuffer.Length = 12; | 675 | blkvsc_req->request.data_buffer.Length = 12; |
676 | 676 | ||
677 | blkvsc_req->cmnd[0] = 0x9E; /* READ_CAPACITY16; */ | 677 | blkvsc_req->cmnd[0] = 0x9E; /* READ_CAPACITY16; */ |
678 | blkvsc_req->cmd_len = 16; | 678 | blkvsc_req->cmd_len = 16; |
@@ -691,7 +691,7 @@ static int blkvsc_do_read_capacity16(struct block_device_context *blkdev) | |||
691 | wait_event_interruptible(blkvsc_req->wevent, blkvsc_req->cond); | 691 | wait_event_interruptible(blkvsc_req->wevent, blkvsc_req->cond); |
692 | 692 | ||
693 | /* check error */ | 693 | /* check error */ |
694 | if (blkvsc_req->request.Status) { | 694 | if (blkvsc_req->request.status) { |
695 | scsi_normalize_sense(blkvsc_req->sense_buffer, | 695 | scsi_normalize_sense(blkvsc_req->sense_buffer, |
696 | SCSI_SENSE_BUFFERSIZE, &sense_hdr); | 696 | SCSI_SENSE_BUFFERSIZE, &sense_hdr); |
697 | if (sense_hdr.asc == 0x3A) { | 697 | if (sense_hdr.asc == 0x3A) { |
@@ -741,14 +741,14 @@ static int blkvsc_remove(struct device *device) | |||
741 | 741 | ||
742 | DPRINT_DBG(BLKVSC_DRV, "blkvsc_remove()\n"); | 742 | DPRINT_DBG(BLKVSC_DRV, "blkvsc_remove()\n"); |
743 | 743 | ||
744 | if (!storvsc_drv_obj->Base.OnDeviceRemove) | 744 | if (!storvsc_drv_obj->base.OnDeviceRemove) |
745 | return -1; | 745 | return -1; |
746 | 746 | ||
747 | /* | 747 | /* |
748 | * Call to the vsc driver to let it know that the device is being | 748 | * Call to the vsc driver to let it know that the device is being |
749 | * removed | 749 | * removed |
750 | */ | 750 | */ |
751 | ret = storvsc_drv_obj->Base.OnDeviceRemove(device_obj); | 751 | ret = storvsc_drv_obj->base.OnDeviceRemove(device_obj); |
752 | if (ret != 0) { | 752 | if (ret != 0) { |
753 | /* TODO: */ | 753 | /* TODO: */ |
754 | DPRINT_ERR(BLKVSC_DRV, | 754 | DPRINT_ERR(BLKVSC_DRV, |
@@ -865,38 +865,38 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req, | |||
865 | (blkvsc_req->write) ? "WRITE" : "READ", | 865 | (blkvsc_req->write) ? "WRITE" : "READ", |
866 | (unsigned long) blkvsc_req->sector_start, | 866 | (unsigned long) blkvsc_req->sector_start, |
867 | blkvsc_req->sector_count, | 867 | blkvsc_req->sector_count, |
868 | blkvsc_req->request.DataBuffer.Offset, | 868 | blkvsc_req->request.data_buffer.Offset, |
869 | blkvsc_req->request.DataBuffer.Length); | 869 | blkvsc_req->request.data_buffer.Length); |
870 | #if 0 | 870 | #if 0 |
871 | for (i = 0; i < (blkvsc_req->request.DataBuffer.Length >> 12); i++) { | 871 | for (i = 0; i < (blkvsc_req->request.data_buffer.Length >> 12); i++) { |
872 | DPRINT_DBG(BLKVSC_DRV, "blkvsc_submit_request() - " | 872 | DPRINT_DBG(BLKVSC_DRV, "blkvsc_submit_request() - " |
873 | "req %p pfn[%d] %llx\n", | 873 | "req %p pfn[%d] %llx\n", |
874 | blkvsc_req, i, | 874 | blkvsc_req, i, |
875 | blkvsc_req->request.DataBuffer.PfnArray[i]); | 875 | blkvsc_req->request.data_buffer.PfnArray[i]); |
876 | } | 876 | } |
877 | #endif | 877 | #endif |
878 | 878 | ||
879 | storvsc_req = &blkvsc_req->request; | 879 | storvsc_req = &blkvsc_req->request; |
880 | storvsc_req->Extension = (void *)((unsigned long)blkvsc_req + | 880 | storvsc_req->extension = (void *)((unsigned long)blkvsc_req + |
881 | sizeof(struct blkvsc_request)); | 881 | sizeof(struct blkvsc_request)); |
882 | 882 | ||
883 | storvsc_req->Type = blkvsc_req->write ? WRITE_TYPE : READ_TYPE; | 883 | storvsc_req->type = blkvsc_req->write ? WRITE_TYPE : READ_TYPE; |
884 | 884 | ||
885 | storvsc_req->OnIOCompletion = request_completion; | 885 | storvsc_req->on_io_completion = request_completion; |
886 | storvsc_req->Context = blkvsc_req; | 886 | storvsc_req->context = blkvsc_req; |
887 | 887 | ||
888 | storvsc_req->Host = blkdev->port; | 888 | storvsc_req->host = blkdev->port; |
889 | storvsc_req->Bus = blkdev->path; | 889 | storvsc_req->bus = blkdev->path; |
890 | storvsc_req->TargetId = blkdev->target; | 890 | storvsc_req->target_id = blkdev->target; |
891 | storvsc_req->LunId = 0; /* this is not really used at all */ | 891 | storvsc_req->lun_id = 0; /* this is not really used at all */ |
892 | 892 | ||
893 | storvsc_req->CdbLen = blkvsc_req->cmd_len; | 893 | storvsc_req->cdb_len = blkvsc_req->cmd_len; |
894 | storvsc_req->Cdb = blkvsc_req->cmnd; | 894 | storvsc_req->cdb = blkvsc_req->cmnd; |
895 | 895 | ||
896 | storvsc_req->SenseBuffer = blkvsc_req->sense_buffer; | 896 | storvsc_req->sense_buffer = blkvsc_req->sense_buffer; |
897 | storvsc_req->SenseBufferSize = SCSI_SENSE_BUFFERSIZE; | 897 | storvsc_req->sense_buffer_size = SCSI_SENSE_BUFFERSIZE; |
898 | 898 | ||
899 | ret = storvsc_drv_obj->OnIORequest(&blkdev->device_ctx->device_obj, | 899 | ret = storvsc_drv_obj->on_io_request(&blkdev->device_ctx->device_obj, |
900 | &blkvsc_req->request); | 900 | &blkvsc_req->request); |
901 | if (ret == 0) | 901 | if (ret == 0) |
902 | blkdev->num_outstanding_reqs++; | 902 | blkdev->num_outstanding_reqs++; |
@@ -992,8 +992,10 @@ static int blkvsc_do_request(struct block_device_context *blkdev, | |||
992 | 992 | ||
993 | blkvsc_req->dev = blkdev; | 993 | blkvsc_req->dev = blkdev; |
994 | blkvsc_req->req = req; | 994 | blkvsc_req->req = req; |
995 | blkvsc_req->request.DataBuffer.Offset = bvec->bv_offset; | 995 | blkvsc_req->request.data_buffer.Offset |
996 | blkvsc_req->request.DataBuffer.Length = 0; | 996 | = bvec->bv_offset; |
997 | blkvsc_req->request.data_buffer.Length | ||
998 | = 0; | ||
997 | 999 | ||
998 | /* Add to the group */ | 1000 | /* Add to the group */ |
999 | blkvsc_req->group = group; | 1001 | blkvsc_req->group = group; |
@@ -1007,8 +1009,11 @@ static int blkvsc_do_request(struct block_device_context *blkdev, | |||
1007 | } | 1009 | } |
1008 | 1010 | ||
1009 | /* Add the curr bvec/segment to the curr blkvsc_req */ | 1011 | /* Add the curr bvec/segment to the curr blkvsc_req */ |
1010 | blkvsc_req->request.DataBuffer.PfnArray[databuf_idx] = page_to_pfn(bvec->bv_page); | 1012 | blkvsc_req->request.data_buffer. |
1011 | blkvsc_req->request.DataBuffer.Length += bvec->bv_len; | 1013 | PfnArray[databuf_idx] |
1014 | = page_to_pfn(bvec->bv_page); | ||
1015 | blkvsc_req->request.data_buffer.Length | ||
1016 | += bvec->bv_len; | ||
1012 | 1017 | ||
1013 | prev_bvec = bvec; | 1018 | prev_bvec = bvec; |
1014 | 1019 | ||
@@ -1073,7 +1078,7 @@ static int blkvsc_do_request(struct block_device_context *blkdev, | |||
1073 | static void blkvsc_cmd_completion(struct hv_storvsc_request *request) | 1078 | static void blkvsc_cmd_completion(struct hv_storvsc_request *request) |
1074 | { | 1079 | { |
1075 | struct blkvsc_request *blkvsc_req = | 1080 | struct blkvsc_request *blkvsc_req = |
1076 | (struct blkvsc_request *)request->Context; | 1081 | (struct blkvsc_request *)request->context; |
1077 | struct block_device_context *blkdev = | 1082 | struct block_device_context *blkdev = |
1078 | (struct block_device_context *)blkvsc_req->dev; | 1083 | (struct block_device_context *)blkvsc_req->dev; |
1079 | struct scsi_sense_hdr sense_hdr; | 1084 | struct scsi_sense_hdr sense_hdr; |
@@ -1083,7 +1088,7 @@ static void blkvsc_cmd_completion(struct hv_storvsc_request *request) | |||
1083 | 1088 | ||
1084 | blkdev->num_outstanding_reqs--; | 1089 | blkdev->num_outstanding_reqs--; |
1085 | 1090 | ||
1086 | if (blkvsc_req->request.Status) | 1091 | if (blkvsc_req->request.status) |
1087 | if (scsi_normalize_sense(blkvsc_req->sense_buffer, | 1092 | if (scsi_normalize_sense(blkvsc_req->sense_buffer, |
1088 | SCSI_SENSE_BUFFERSIZE, &sense_hdr)) | 1093 | SCSI_SENSE_BUFFERSIZE, &sense_hdr)) |
1089 | scsi_print_sense_hdr("blkvsc", &sense_hdr); | 1094 | scsi_print_sense_hdr("blkvsc", &sense_hdr); |
@@ -1095,7 +1100,7 @@ static void blkvsc_cmd_completion(struct hv_storvsc_request *request) | |||
1095 | static void blkvsc_request_completion(struct hv_storvsc_request *request) | 1100 | static void blkvsc_request_completion(struct hv_storvsc_request *request) |
1096 | { | 1101 | { |
1097 | struct blkvsc_request *blkvsc_req = | 1102 | struct blkvsc_request *blkvsc_req = |
1098 | (struct blkvsc_request *)request->Context; | 1103 | (struct blkvsc_request *)request->context; |
1099 | struct block_device_context *blkdev = | 1104 | struct block_device_context *blkdev = |
1100 | (struct block_device_context *)blkvsc_req->dev; | 1105 | (struct block_device_context *)blkvsc_req->dev; |
1101 | unsigned long flags; | 1106 | unsigned long flags; |
@@ -1110,7 +1115,7 @@ static void blkvsc_request_completion(struct hv_storvsc_request *request) | |||
1110 | (blkvsc_req->write) ? "WRITE" : "READ", | 1115 | (blkvsc_req->write) ? "WRITE" : "READ", |
1111 | (unsigned long)blkvsc_req->sector_start, | 1116 | (unsigned long)blkvsc_req->sector_start, |
1112 | blkvsc_req->sector_count, | 1117 | blkvsc_req->sector_count, |
1113 | blkvsc_req->request.DataBuffer.Length, | 1118 | blkvsc_req->request.data_buffer.Length, |
1114 | blkvsc_req->group->outstanding, | 1119 | blkvsc_req->group->outstanding, |
1115 | blkdev->num_outstanding_reqs); | 1120 | blkdev->num_outstanding_reqs); |
1116 | 1121 | ||
@@ -1137,7 +1142,7 @@ static void blkvsc_request_completion(struct hv_storvsc_request *request) | |||
1137 | list_del(&comp_req->req_entry); | 1142 | list_del(&comp_req->req_entry); |
1138 | 1143 | ||
1139 | if (!__blk_end_request(comp_req->req, | 1144 | if (!__blk_end_request(comp_req->req, |
1140 | (!comp_req->request.Status ? 0 : -EIO), | 1145 | (!comp_req->request.status ? 0 : -EIO), |
1141 | comp_req->sector_count * blkdev->sector_size)) { | 1146 | comp_req->sector_count * blkdev->sector_size)) { |
1142 | /* | 1147 | /* |
1143 | * All the sectors have been xferred ie the | 1148 | * All the sectors have been xferred ie the |
@@ -1195,7 +1200,7 @@ static int blkvsc_cancel_pending_reqs(struct block_device_context *blkdev) | |||
1195 | 1200 | ||
1196 | if (comp_req->req) { | 1201 | if (comp_req->req) { |
1197 | ret = __blk_end_request(comp_req->req, | 1202 | ret = __blk_end_request(comp_req->req, |
1198 | (!comp_req->request.Status ? 0 : -EIO), | 1203 | (!comp_req->request.status ? 0 : -EIO), |
1199 | comp_req->sector_count * | 1204 | comp_req->sector_count * |
1200 | blkdev->sector_size); | 1205 | blkdev->sector_size); |
1201 | 1206 | ||