Skip to content

Commit 790abe4

Browse files
XiaoNi87YuKuai-huawei
authored andcommitted
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 <[email protected]> Signed-off-by: Xiao Ni <[email protected]> Link: https://lore.kernel.org/linux-raid/[email protected] Signed-off-by: Yu Kuai <[email protected]>
1 parent 5f286f3 commit 790abe4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/md/md.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6523,8 +6523,6 @@ static void __md_stop(struct mddev *mddev)
65236523
if (mddev->private)
65246524
pers->free(mddev, mddev->private);
65256525
mddev->private = NULL;
6526-
if (pers->sync_request && mddev->to_remove == NULL)
6527-
mddev->to_remove = &md_redundancy_group;
65286526
put_pers(pers);
65296527
clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
65306528

0 commit comments

Comments
 (0)