mbox series

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

Message ID 20240117093707.2767209-1-linan666@huaweicloud.com (mailing list archive)
Headers show
Series md: Don't clear MD_CLOSING when the raid is about to stop | expand

Message

Li Nan Jan. 17, 2024, 9:37 a.m. UTC
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(-)