Skip to content

Commit a03fa6b

Browse files
committed
md: remove/add redundancy group only in level change
JIRA: https://issues.redhat.com/browse/RHEL-94433 JIRA: https://issues.redhat.com/browse/RHEL-20191 JIRA: https://issues.redhat.com/browse/RHEL-9656 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: Nigel Croxon <ncroxon@redhat.com>
1 parent f43dfce commit a03fa6b

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
@@ -6549,8 +6549,6 @@ static void __md_stop(struct mddev *mddev)
65496549
if (mddev->private)
65506550
pers->free(mddev, mddev->private);
65516551
mddev->private = NULL;
6552-
if (pers->sync_request && mddev->to_remove == NULL)
6553-
mddev->to_remove = &md_redundancy_group;
65546552
put_pers(pers);
65556553
clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
65566554

0 commit comments

Comments
 (0)