aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {
155 155
156 int major; /* blkdev assigned major */ 156 int major; /* blkdev assigned major */
157 struct gendisk *disk; /* blkdev's gendisk and rq */ 157 struct gendisk *disk; /* blkdev's gendisk and rq */
158 struct request_queue *q;
159 158
160 struct rbd_options rbd_opts; 159 struct rbd_options rbd_opts;
161 struct rbd_client *rbd_client; 160 struct rbd_client *rbd_client;
@@ -1923,7 +1922,6 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
1923 q->queuedata = rbd_dev; 1922 q->queuedata = rbd_dev;
1924 1923
1925 rbd_dev->disk = disk; 1924 rbd_dev->disk = disk;
1926 rbd_dev->q = q;
1927 1925
1928 /* finally, announce the disk to the world */ 1926 /* finally, announce the disk to the world */
1929 set_capacity(disk, total_size / SECTOR_SIZE); 1927 set_capacity(disk, total_size / SECTOR_SIZE);