Skip to content

Commit 767c7c5

Browse files
author
Ming Lei
committed
md: remove/add redundancy group only in level change
JIRA: https://issues.redhat.com/browse/RHEL-106845 commit 790abe4 Author: Xiao Ni <xni@redhat.com> Date: Wed Jun 11 15:31:08 2025 +0800 md: remove/add redundancy group only in level change del_gendisk is called in synchronous way now. So it doesn't need to handle redundancy group in stop path separately. Reviewed-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Xiao Ni <xni@redhat.com> Link: https://lore.kernel.org/linux-raid/20250611073108.25463-4-xni@redhat.com Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Ming Lei <ming.lei@redhat.com>
1 parent 8802c42 commit 767c7c5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/md/md.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6516,8 +6516,6 @@ static void __md_stop(struct mddev *mddev)
65166516
if (mddev->private)
65176517
pers->free(mddev, mddev->private);
65186518
mddev->private = NULL;
6519-
if (pers->sync_request && mddev->to_remove == NULL)
6520-
mddev->to_remove = &md_redundancy_group;
65216519
put_pers(pers);
65226520
clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
65236521

0 commit comments

Comments
 (0)