md: introduce md_ro_state
authorYe Bin <yebin10@huawei.com>
Tue, 20 Sep 2022 02:39:38 +0000 (10:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:39:16 +0000 (18:39 +0100)
commit5255ded034227e93f77028613bcde4d32a02c1d9
treecbbe539090cd847b2741bf931f412823dfdaee04
parenta38c1e766f4f70adec029ee157cba409fc8c3d98
md: introduce md_ro_state

[ Upstream commit f97a5528b21eb175d90dce2df9960c8d08e1be82 ]

Introduce md_ro_state for mddev->ro, so it is easy to understand.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Stable-dep-of: c9f7cb5b2bc9 ("md: don't leave 'MD_RECOVERY_FROZEN' in error path of md_set_readonly()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/md.c