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

'reconfig_mutex' will be grabbed before these ioctls, suspend array
before holding the lock, so that io won't concurrent with array
reconfiguration through ioctls.

This is 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-13-yukuai1@huaweicloud.com
drivers/md/md.c