{
struct block_device_context *blkdev = blkvsc_req->dev;
struct hv_device *device_ctx = blkdev->device_ctx;
- struct storvsc_driver *storvsc_drv_obj =
+ struct storvsc_driver *storvsc_drv =
drv_to_stordrv(device_ctx->device.driver);
struct hv_storvsc_request *storvsc_req;
struct vmscsi_request *vm_srb;
storvsc_req->sense_buffer = blkvsc_req->sense_buffer;
- ret = storvsc_drv_obj->on_io_request(blkdev->device_ctx,
+ ret = storvsc_drv->on_io_request(blkdev->device_ctx,
&blkvsc_req->request);
if (ret == 0)
blkdev->num_outstanding_reqs++;
*/
static int blkvsc_remove(struct hv_device *dev)
{
- struct storvsc_driver *storvsc_drv_obj =
+ struct storvsc_driver *storvsc_drv =
drv_to_stordrv(dev->device.driver);
struct block_device_context *blkdev = dev_get_drvdata(&dev->device);
unsigned long flags;
* Call to the vsc driver to let it know that the device is being
* removed
*/
- storvsc_drv_obj->base.dev_rm(dev);
+ storvsc_drv->base.dev_rm(dev);
/* Get to a known state */
spin_lock_irqsave(&blkdev->lock, flags);
*/
static int blkvsc_drv_init(void)
{
- struct storvsc_driver *storvsc_drv_obj = &blkvsc_drv;
+ struct storvsc_driver *storvsc_drv = &blkvsc_drv;
struct hv_driver *drv = &blkvsc_drv.base;
int ret;
- storvsc_drv_obj->ring_buffer_size = blkvsc_ringbuffer_size;
+ storvsc_drv->ring_buffer_size = blkvsc_ringbuffer_size;
/* Callback to client driver to complete the initialization */
- blk_vsc_initialize(&storvsc_drv_obj->base);
+ blk_vsc_initialize(&storvsc_drv->base);
- drv->driver.name = storvsc_drv_obj->base.name;
+ drv->driver.name = storvsc_drv->base.name;
drv->probe = blkvsc_probe;
drv->remove = blkvsc_remove;
static void blkvsc_drv_exit(void)
{
- struct storvsc_driver *storvsc_drv_obj = &blkvsc_drv;
+ struct storvsc_driver *storvsc_drv = &blkvsc_drv;
struct hv_driver *drv = &blkvsc_drv.base;
struct device *current_dev;
int ret;
device_unregister(current_dev);
}
- if (storvsc_drv_obj->base.cleanup)
- storvsc_drv_obj->base.cleanup(&storvsc_drv_obj->base);
+ if (storvsc_drv->base.cleanup)
+ storvsc_drv->base.cleanup(&storvsc_drv->base);
vmbus_child_driver_unregister(&drv->driver);
*/
static int blkvsc_probe(struct hv_device *dev)
{
- struct storvsc_driver *storvsc_drv_obj =
+ struct storvsc_driver *storvsc_drv =
drv_to_stordrv(dev->device.driver);
struct block_device_context *blkdev = NULL;
/* Call to the vsc driver to add the device */
- ret = storvsc_drv_obj->base.dev_add(dev, &device_info);
+ ret = storvsc_drv->base.dev_add(dev, &device_info);
if (ret != 0)
goto cleanup;
return ret;
remove:
- storvsc_drv_obj->base.dev_rm(dev);
+ storvsc_drv->base.dev_rm(dev);
cleanup:
if (blkdev) {