mdadm cannot be compiled - just reminder Sometimes wait_backup() omits transition from reshape to idle state and mdadm seams to be hung. Add 1 sec. timeout for waiting on select. This allows for wait_backup exit when reshape is ended. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Grow.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Grow.c b/Grow.c index 99807b4..ecaeb39 100644 --- a/Grow.c +++ b/Grow.c @@ -2065,6 +2065,10 @@ static int wait_backup(struct mdinfo *sra, } while (completed < offset + blocks) { char action[20]; + struct timeval t; + + t.tv_sec = 1; + t.tv_usec = 0; fd_set rfds; FD_ZERO(&rfds); FD_SET(fd, &rfds); -- 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