Skip to content

Commit

Permalink
drbd: stop using ->queuedata
Browse files Browse the repository at this point in the history
Instead of setting up the queuedata as well just use one private data
field.

Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Jul 1, 2020
1 parent 82bb454 commit 84bc83c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2805,7 +2805,6 @@ enum drbd_ret_code drbd_create_device(struct drbd_config_context *adm_ctx, unsig
if (!q)
goto out_no_q;
device->rq_queue = q;
q->queuedata = device;

disk = alloc_disk(1);
if (!disk)
Expand Down
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ void do_submit(struct work_struct *ws)

blk_qc_t drbd_make_request(struct request_queue *q, struct bio *bio)
{
struct drbd_device *device = (struct drbd_device *) q->queuedata;
struct drbd_device *device = bio->bi_disk->private_data;
unsigned long start_jif;

blk_queue_split(q, &bio);
Expand Down

0 comments on commit 84bc83c

Please sign in to comment.