When performing backward takeover to raid0 monitor cannot exit for single raid0 array configuration. Monitor is locked by communication (ping_manager()) after unfreeze() Do not ping manager for raid0 array as they shouldn't be monitored. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- mdadm/mdadm/msg.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mdadm/mdadm/msg.c b/mdadm/mdadm/msg.c index 7f0b66e..f413824 100644 --- a/mdadm/mdadm/msg.c +++ b/mdadm/mdadm/msg.c @@ -414,11 +414,12 @@ void unblock_monitor(char *container, const int unfreeze) if (!is_container_member(e, container)) continue; sysfs_free(sra); - sra = sysfs_read(-1, e->devnum, GET_VERSION); + sra = sysfs_read(-1, e->devnum, GET_VERSION|GET_LEVEL); if (unblock_subarray(sra, unfreeze)) fprintf(stderr, Name ": Failed to unfreeze %s\n", e->dev); } - ping_monitor(container); + if (sra && sra->array.level > 0) + ping_monitor(container); sysfs_free(sra); free_mdstat(ent); -- 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