]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
imsm: use timeout when waiting for reshape progress
[thirdparty/mdadm.git] / super-intel.c
index b8368163877139b7332ffa8ddab2bab3c30af67c..3b3d561a0da21373a5e7ed12aa3748533728c342 100644 (file)
@@ -10393,7 +10393,8 @@ int wait_for_reshape_imsm(struct mdinfo *sra, int ndata)
 
        do {
                char action[20];
-               sysfs_wait(fd, NULL);
+               int timeout = 3000;
+               sysfs_wait(fd, &timeout);
                if (sysfs_get_str(sra, NULL, "sync_action",
                                  action, 20) > 0 &&
                                strncmp(action, "reshape", 7) != 0) {