Skip to content

Commit

Permalink
rbd: kill rbd_dev->q
Browse files Browse the repository at this point in the history
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: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
  • Loading branch information
Alex Elder committed Oct 1, 2012
1 parent 9fcbb80 commit 98cec11
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ struct rbd_device {

int major; /* blkdev assigned major */
struct gendisk *disk; /* blkdev's gendisk and rq */
struct request_queue *q;

struct rbd_options rbd_opts;
struct rbd_client *rbd_client;
Expand Down Expand Up @@ -1923,7 +1922,6 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
q->queuedata = rbd_dev;

rbd_dev->disk = disk;
rbd_dev->q = q;

/* finally, announce the disk to the world */
set_capacity(disk, total_size / SECTOR_SIZE);
Expand Down

0 comments on commit 98cec11

Please sign in to comment.