Skip to content

Commit

Permalink
dm: 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 <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Jul 1, 2020
1 parent 987a0ef commit c4a59c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ static blk_qc_t dm_process_bio(struct mapped_device *md,

static blk_qc_t dm_make_request(struct request_queue *q, struct bio *bio)
{
struct mapped_device *md = q->queuedata;
struct mapped_device *md = bio->bi_disk->private_data;
blk_qc_t ret = BLK_QC_T_NONE;
int srcu_idx;
struct dm_table *map;
Expand Down Expand Up @@ -1995,7 +1995,6 @@ static struct mapped_device *alloc_dev(int minor)
md->queue = blk_alloc_queue(dm_make_request, numa_node_id);
if (!md->queue)
goto bad;
md->queue->queuedata = md;

md->disk = alloc_disk_node(1, md->numa_node_id);
if (!md->disk)
Expand Down

0 comments on commit c4a59c4

Please sign in to comment.