[PATCH v2 0/3] md: Don't clear MD_CLOSING when the raid is about to stop

From: linan666
Date: Wed Jan 17 2024 - 04:41:03 EST


From: Li Nan <linan122@xxxxxxxxxx>

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