summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-08 19:15:14 +0300
committerSong Liu <songliubraving@fb.com>2020-05-13 21:48:28 +0300
commite4fc5a74293fbe8a1b8598b8a3c53592a5d70398 (patch)
tree43e577c1061189515c244da467b009156a9f4589 /drivers/md
parentc91114c2b89d5bea132d34b40568053f8bfa963d (diff)
downloadlinux-e4fc5a74293fbe8a1b8598b8a3c53592a5d70398.tar.xz
md: stop using ->queuedata
Pointer to mddev is already available in private_data. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/md.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 7b2ac5f23260..79e36cb4e8b0 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -467,7 +467,7 @@ static blk_qc_t md_make_request(struct request_queue *q, struct bio *bio)
{
const int rw = bio_data_dir(bio);
const int sgrp = op_stat_group(bio_op(bio));
- struct mddev *mddev = q->queuedata;
+ struct mddev *mddev = bio->bi_disk->private_data;
unsigned int sectors;
if (unlikely(test_bit(MD_BROKEN, &mddev->flags)) && (rw == WRITE)) {
@@ -5644,7 +5644,6 @@ static int md_alloc(dev_t dev, char *name)
mddev->queue = blk_alloc_queue(md_make_request, NUMA_NO_NODE);
if (!mddev->queue)
goto abort;
- mddev->queue->queuedata = mddev;
blk_set_stacking_limits(&mddev->queue->limits);