Commit 84bc83c3 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

drbd: stop using ->queuedata



Instead of setting up the queuedata as well just use one private data
field.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 82bb454d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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);