From: Li Nan <linan122@huawei.com>
Changes in v2:
- don't clear MD_CLOSING in md_clean().
- set MD_CLOSING and sync blockdev in array_state_store().
Li Nan (3):
md: Don't clear MD_CLOSING when the raid is about to stop
md: factor out a helper mddev_sync_blockdev() to sync mddev
md: sync blockdev before stopping raid or setting readonly
drivers/md/md.c | 62 ++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 49 insertions(+), 13 deletions(-)
--
2.39.2