Re: [dm-devel] [PATCH -next v2 6/6] md: enhance checking in md_check_recovery()

2023-06-14 Thread Xiao Ni
在 2023/5/29 下午9:20, Yu Kuai 写道: From: Yu Kuai For md_check_recovery(): 1) if 'MD_RECOVERY_RUNING' is not set, register new sync_thread. 2) if 'MD_RECOVERY_RUNING' is set: a) if 'MD_RECOVERY_DONE' is not set, don't do anything, wait for md_do_sync() to be done. b) if 'MD_RECOVERY_DONE'

[dm-devel] [PATCH -next v2 6/6] md: enhance checking in md_check_recovery()

2023-05-29 Thread Yu Kuai
From: Yu Kuai For md_check_recovery(): 1) if 'MD_RECOVERY_RUNING' is not set, register new sync_thread. 2) if 'MD_RECOVERY_RUNING' is set: a) if 'MD_RECOVERY_DONE' is not set, don't do anything, wait for md_do_sync() to be done. b) if 'MD_RECOVERY_DONE' is set, unregister sync_thread. Curre