diff options
author | Christoph Hellwig <hch@lst.de> | 2024-03-03 17:01:49 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-03-06 19:59:53 +0300 |
commit | 396799eb5b6f87ec2d759e1a90e179f7058ab9e6 (patch) | |
tree | 4387954e547239a750af9ddffb1bf36a8241f0d1 /drivers/md/raid5-ppl.c | |
parent | 81a16e19d545fd244ad176f7222d92b67215a33b (diff) | |
download | linux-396799eb5b6f87ec2d759e1a90e179f7058ab9e6.tar.xz |
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/raid5-ppl.c')
-rw-r--r-- | drivers/md/raid5-ppl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid5-ppl.c b/drivers/md/raid5-ppl.c index da4ba736c4f0..a70cbec12ed0 100644 --- a/drivers/md/raid5-ppl.c +++ b/drivers/md/raid5-ppl.c @@ -1393,7 +1393,8 @@ int ppl_init_log(struct r5conf *conf) ppl_conf->signature = ~crc32c_le(~0, mddev->uuid, sizeof(mddev->uuid)); ppl_conf->block_size = 512; } else { - ppl_conf->block_size = queue_logical_block_size(mddev->queue); + ppl_conf->block_size = + queue_logical_block_size(mddev->gendisk->queue); } for (i = 0; i < ppl_conf->count; i++) { |