Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248933
b: refs/heads/master
c: 1e05d88
h: refs/heads/master
i:
  248931: fb6dc30
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent dff1f34 commit 4976cbd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 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: 2fd0df276e4ebb411dd0f87a2c9381b466f81ed4
refs/heads/master: 1e05d88e9374036cd2d6d0f7e840a790cf4bb43a
5 changes: 1 addition & 4 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ static int blk_vsc_initialize(struct hv_driver *driver)
driver->name = g_blk_driver_name;
memcpy(&driver->dev_type, &g_blk_device_type, sizeof(struct hv_guid));

stor_driver->request_ext_size =
sizeof(struct storvsc_request_extension);

/*
* Divide the ring buffer data size (which is 1 page less than the ring
Expand Down Expand Up @@ -347,8 +345,7 @@ static int blkvsc_probe(struct device *device)
/* sizeof(struct blkvsc_request)); */

blkdev->request_pool = kmem_cache_create(dev_name(&device_obj->device),
sizeof(struct blkvsc_request) +
storvsc_drv_obj->request_ext_size, 0,
sizeof(struct blkvsc_request), 0,
SLAB_HWCACHE_ALIGN, NULL);
if (!blkdev->request_pool) {
ret = -ENOMEM;
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/hv/storvsc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ struct storvsc_driver_object {
/* Set by caller (in bytes) */
u32 ring_buffer_size;

/* Allocate this much private extension for each I/O request */
u32 request_ext_size;

/* Maximum # of requests in flight per channel/device */
u32 max_outstanding_req_per_channel;

Expand Down
11 changes: 3 additions & 8 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ static int stor_vsc_initialize(struct hv_driver *driver)
memcpy(&driver->dev_type, &gStorVscDeviceType,
sizeof(struct hv_guid));

stor_driver->request_ext_size =
sizeof(struct storvsc_request_extension);

/*
* Divide the ring buffer data size (which is 1 page less
Expand Down Expand Up @@ -203,8 +201,7 @@ static int storvsc_drv_init(void)
drv->priv = storvsc_drv_obj;

DPRINT_INFO(STORVSC_DRV,
"request extension size %u, max outstanding reqs %u",
storvsc_drv_obj->request_ext_size,
"max outstanding reqs %u",
storvsc_drv_obj->max_outstanding_req_per_channel);

if (storvsc_drv_obj->max_outstanding_req_per_channel <
Expand Down Expand Up @@ -359,8 +356,7 @@ static int storvsc_probe(struct device *device)

host_device_ctx->request_pool =
kmem_cache_create(dev_name(&device_obj->device),
sizeof(struct storvsc_cmd_request) +
storvsc_drv_obj->request_ext_size, 0,
sizeof(struct storvsc_cmd_request), 0,
SLAB_HWCACHE_ALIGN, NULL);

if (!host_device_ctx->request_pool) {
Expand Down Expand Up @@ -759,8 +755,7 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd,

request = &cmd_request->request;

DPRINT_DBG(STORVSC_DRV, "req %p size %d ext %d", request, request_size,
storvsc_drv_obj->request_ext_size);
DPRINT_DBG(STORVSC_DRV, "req %p size %d", request, request_size);

/* Build the SRB */
switch (scmnd->sc_data_direction) {
Expand Down

0 comments on commit 4976cbd

Please sign in to comment.