diff options
| author | Xiao Ni <xni@redhat.com> | 2025-06-11 15:31:08 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai3@huawei.com> | 2025-07-12 17:52:05 +0800 |
| commit | 790abe4d77af736e2521ef121fae8c6ed2799773 (patch) | |
| tree | 6b857e8aa2c8a738fb5d0760ec544cac01d0df08 /drivers/md | |
| parent | 5f286f33553d600e6c2fb5a23dd6afcf99b3ebac (diff) | |
| download | linux-790abe4d77af736e2521ef121fae8c6ed2799773.tar.gz linux-790abe4d77af736e2521ef121fae8c6ed2799773.tar.bz2 linux-790abe4d77af736e2521ef121fae8c6ed2799773.zip | |
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>
Diffstat (limited to 'drivers/md')
| -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 dde3d2bfd34d..7ae91155f2e4 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6523,8 +6523,6 @@ static void __md_stop(struct mddev *mddev) if (mddev->private) pers->free(mddev, mddev->private); mddev->private = NULL; - if (pers->sync_request && mddev->to_remove == NULL) - mddev->to_remove = &md_redundancy_group; put_pers(pers); clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery); |
