md: don't quiesce in mddev_suspend()
authorYu Kuai <yukuai3@huawei.com>
Wed, 28 Jun 2023 01:29:30 +0000 (09:29 +0800)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:30 +0000 (00:13 -0700)
commitb39f35ebe86d88788d85f61e83c81c308cb76727
tree9922a4052570692e0c1a095b85bc7c85c300903c
parent02c67a3b72b13951c2ca134bd7065f03ec57946d
md: don't quiesce in mddev_suspend()

Some levels doesn't implement "pers->quiesce", for example
raid0_quiesce() is empty, and now that all levels will drop 'active_io'
until io is done, wait for 'active_io' to be 0 is enough to make sure all
normal io is done, and percpu_ref_kill() for 'active_io' will make sure
no new normal io can be dispatched. There is no need to call
"pers->quiesce" anymore from mddev_suspend().

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20230628012931.88911-2-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md.c