Commit 98cec111 authored by Alex Elder's avatar Alex Elder

rbd: kill rbd_dev->q

A copy of rbd_dev->disk->queue is held in rbd_dev->q, but it's
never actually used.  So get just get rid of the field.
Signed-off-by: default avatarAlex Elder <elder@inktank.com>
Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
parent 9fcbb800
...@@ -155,7 +155,6 @@ struct rbd_device { ...@@ -155,7 +155,6 @@ struct rbd_device {
int major; /* blkdev assigned major */ int major; /* blkdev assigned major */
struct gendisk *disk; /* blkdev's gendisk and rq */ struct gendisk *disk; /* blkdev's gendisk and rq */
struct request_queue *q;
struct rbd_options rbd_opts; struct rbd_options rbd_opts;
struct rbd_client *rbd_client; struct rbd_client *rbd_client;
...@@ -1923,7 +1922,6 @@ static int rbd_init_disk(struct rbd_device *rbd_dev) ...@@ -1923,7 +1922,6 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
q->queuedata = rbd_dev; q->queuedata = rbd_dev;
rbd_dev->disk = disk; rbd_dev->disk = disk;
rbd_dev->q = q;
/* finally, announce the disk to the world */ /* finally, announce the disk to the world */
set_capacity(disk, total_size / SECTOR_SIZE); set_capacity(disk, total_size / SECTOR_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment