md: remove/add redundancy group only in level change
authorXiao Ni <xni@redhat.com>
Wed, 11 Jun 2025 07:31:08 +0000 (15:31 +0800)
committerYu Kuai <yukuai3@huawei.com>
Sat, 12 Jul 2025 09:52:05 +0000 (17:52 +0800)
commit790abe4d77af736e2521ef121fae8c6ed2799773
tree6b857e8aa2c8a738fb5d0760ec544cac01d0df08
parent5f286f33553d600e6c2fb5a23dd6afcf99b3ebac
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>
drivers/md/md.c