Skip to content

Commit c4a59c4

Browse files
Christoph Hellwigaxboe
authored andcommitted
dm: 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 987a0ef commit c4a59c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/md/dm.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ static blk_qc_t dm_process_bio(struct mapped_device *md,
17891789

17901790
static blk_qc_t dm_make_request(struct request_queue *q, struct bio *bio)
17911791
{
1792-
struct mapped_device *md = q->queuedata;
1792+
struct mapped_device *md = bio->bi_disk->private_data;
17931793
blk_qc_t ret = BLK_QC_T_NONE;
17941794
int srcu_idx;
17951795
struct dm_table *map;
@@ -1995,7 +1995,6 @@ static struct mapped_device *alloc_dev(int minor)
19951995
md->queue = blk_alloc_queue(dm_make_request, numa_node_id);
19961996
if (!md->queue)
19971997
goto bad;
1998-
md->queue->queuedata = md;
19991998

20001999
md->disk = alloc_disk_node(1, md->numa_node_id);
20012000
if (!md->disk)

0 commit comments

Comments
 (0)