diff options
author | Christoph Hellwig <hch@lst.de> | 2024-03-03 07:01:49 -0700 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-03-06 08:59:53 -0800 |
commit | 396799eb5b6f87ec2d759e1a90e179f7058ab9e6 (patch) | |
tree | 4387954e547239a750af9ddffb1bf36a8241f0d1 /drivers/md/md.h | |
parent | 81a16e19d545fd244ad176f7222d92b67215a33b (diff) | |
download | linux-stable-396799eb5b6f87ec2d759e1a90e179f7058ab9e6.tar.gz linux-stable-396799eb5b6f87ec2d759e1a90e179f7058ab9e6.tar.bz2 linux-stable-396799eb5b6f87ec2d759e1a90e179f7058ab9e6.zip |
md: remove mddev->queue
Just use the request_queue from the gendisk pointer in the relatively
few places that sill need it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed--by: Song Liu <song@kernel.org>
Tested-by: Song Liu <song@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240303140150.5435-11-hch@lst.de
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 0d1119be0b50..67e50c44f4b5 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -480,7 +480,6 @@ struct mddev { struct timer_list safemode_timer; struct percpu_ref writes_pending; int sync_checkers; /* # of threads checking writes_pending */ - struct request_queue *queue; /* for plugging ... */ struct bitmap *bitmap; /* the bitmap for the device */ struct { @@ -869,7 +868,7 @@ static inline void mddev_check_write_zeroes(struct mddev *mddev, struct bio *bio { if (bio_op(bio) == REQ_OP_WRITE_ZEROES && !bio->bi_bdev->bd_disk->queue->limits.max_write_zeroes_sectors) - mddev->queue->limits.max_write_zeroes_sectors = 0; + mddev->gendisk->queue->limits.max_write_zeroes_sectors = 0; } static inline int mddev_suspend_and_lock(struct mddev *mddev) @@ -932,7 +931,7 @@ static inline void mddev_trace_remap(struct mddev *mddev, struct bio *bio, #define mddev_add_trace_msg(mddev, fmt, args...) \ do { \ if (!mddev_is_dm(mddev)) \ - blk_add_trace_msg((mddev)->queue, fmt, ##args); \ + blk_add_trace_msg((mddev)->gendisk->queue, fmt, ##args); \ } while (0) #endif /* _MD_MD_H */ |