Skip to content

Commit 84bc83c

Browse files
Christoph Hellwigaxboe
authored andcommitted
drbd: stop using ->queuedata
Instead of setting up the queuedata as well just use one private data field. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 82bb454 commit 84bc83c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/block/drbd/drbd_main.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2805,7 +2805,6 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig
28052805
if (!q)
28062806
goto out_no_q;
28072807
device->rq_queue = q;
2808-
q->queuedata = device;
28092808

28102809
disk = alloc_disk(1);
28112810
if (!disk)

‎drivers/block/drbd/drbd_req.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ void do_submit(struct work_struct *ws)
15951595

15961596
blk_qc_t drbd_make_request(struct request_queue *q, struct bio *bio)
15971597
{
1598-
struct drbd_device *device = (struct drbd_device *) q->queuedata;
1598+
struct drbd_device *device = bio->bi_disk->private_data;
15991599
unsigned long start_jif;
16001600

16011601
blk_queue_split(q, &bio);

0 commit comments

Comments
 (0)