md: refactor action_store() for 'idle' and 'frozen'
authorYu Kuai <yukuai3@huawei.com>
Mon, 29 May 2023 13:20:33 +0000 (21:20 +0800)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:28 +0000 (00:13 -0700)
commit64e5e09afc14f8cc9058b0ed5c9cc4c8cd126b85
treec8448cc9fa87c6e007a76f8c65bb97423c7e8785
parenta865b96c513bcaeec49669010d67c40aa8e58619
md: refactor action_store() for 'idle' and 'frozen'

Prepare to handle 'idle' and 'frozen' differently to fix a deadlock, there
are no functional changes except that MD_RECOVERY_RUNNING is checked
again after 'reconfig_mutex' is held.

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