[PATCH openEuler-22.03-LTS 08/22] md: refactor idle/frozen_sync_thread()