After completing all device formats when formatting disks for
RAID, we wait until the drives get converted from JBOD
resources to RAID device resources. We wait for 30 seconds for
this to complete. However, due to a bug, we ended up waiting here
forever. This ensures we timeout after 30 seconds.

Signed-off-by: Brian King <brk...@linux.vnet.ibm.com>
---
 iprconfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iprconfig.c b/iprconfig.c
index 6a5fd21..5f31beb 100644
--- a/iprconfig.c
+++ b/iprconfig.c
@@ -232,7 +232,7 @@ static int wait_for_formatted_af_dasd(int timeout_in_secs)
        int num_devs, j, af_found, jbod2af_formats, num_secs;
        u64 device_id;
 
-       for (num_secs = 0; num_secs < timeout_in_secs; timeout_in_secs++) {
+       for (num_secs = 0; num_secs < timeout_in_secs; num_secs++) {
                af_found = 0;
                jbod2af_formats = 0;
                scsi_devs = NULL;
-- 
1.8.3.1



_______________________________________________
Iprdd-devel mailing list
Iprdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iprdd-devel

Reply via email to