summaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-08-30 00:11:06 +0200
committerAlex Elder <elder@inktank.com>2012-10-01 21:30:51 +0200
commit98cec111c08d8d52168e28648b4a1c2f5011cd70 (patch)
tree77f259b8fc3f9b746a8da3391eb2daf29894638a /drivers/block/rbd.c
parentrbd: rename __rbd_init_snaps_header() (diff)
downloadlinux-98cec111c08d8d52168e28648b4a1c2f5011cd70.tar.xz
linux-98cec111c08d8d52168e28648b4a1c2f5011cd70.zip
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: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to '')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 77263681dde2..774a36bb00ed 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -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;
@@ -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);