diff options
author | Christoph Hellwig <hch@lst.de> | 2024-03-03 15:01:48 +0100 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-03-06 17:59:53 +0100 |
commit | 81a16e19d545fd244ad176f7222d92b67215a33b (patch) | |
tree | cdd1030aad6ef0b3855c9088d5e94eb4f9c9a839 /drivers/md/md.c | |
parent | md/raid10: use the atomic queue limit update APIs (diff) | |
download | linux-81a16e19d545fd244ad176f7222d92b67215a33b.tar.xz linux-81a16e19d545fd244ad176f7222d92b67215a33b.zip |
md: don't initialize queue limits
Initial queue limits are now set from ->run. Remove the superfluous
initialization in md_alloc and level_store.
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-10-hch@lst.de
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 7c9fb7dcf0d4..4bc47ed2d7a8 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -4164,7 +4164,6 @@ level_store(struct mddev *mddev, const char *buf, size_t len) mddev->in_sync = 1; del_timer_sync(&mddev->safemode_timer); } - blk_set_stacking_limits(&mddev->queue->limits); pers->run(mddev); set_bit(MD_SB_CHANGE_DEVS, &mddev->sb_flags); if (!mddev->thread) @@ -5879,7 +5878,6 @@ struct mddev *md_alloc(dev_t dev, char *name) disk->private_data = mddev; mddev->queue = disk->queue; - blk_set_stacking_limits(&mddev->queue->limits); blk_queue_write_cache(mddev->queue, true, true); disk->events |= DISK_EVENT_MEDIA_CHANGE; mddev->gendisk = disk; |