[PATCH OLK-6.6 55/64] md: factor out helpers for different sync_action in md_do_sync()