]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:36:41 +0000 (18:36 +0100)
commit4a52acc91015ba701b907773b184186adcdd0b80
tree35bd3d088e2180826922fec0c2dffeb3b2317536
parent940a7bcd4f778f3372cf1bcd1eff7914d5d5557d
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