md: use new apis to suspend array for sysfs apis
authorYu Kuai <yukuai3@huawei.com>
Tue, 10 Oct 2023 15:19:49 +0000 (23:19 +0800)
committerSong Liu <song@kernel.org>
Wed, 11 Oct 2023 01:49:50 +0000 (18:49 -0700)
commit205669f37770772c1ae8c2dac1eba6da521a8b77
treef46ec5c4b73c7ced35847bbb2838991a437988d0
parente28ca92fbb5c6ed8fac5db65e02947bf020c5b60
md: use new apis to suspend array for sysfs apis

Convert to use new apis in following sysfs apis:
 - level_store
 - suspend_lo_store
 - suspend_hi_store
 - serialize_policy_store

These are not hot path, so performance is not concerned.

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