> My current idea to solve this is yet another separate thread just for > monitoring kernel state changes. Don't have it ready yet, though. Another idea would be in manage_member, after queueing the metadata update and waking up the monitor, to wait for the metadata to finish processing before actually starting the recovery (writing "recover" to sync_action). Martin -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html