Skip to contentSkip to conversation

megaraid:Fix for loop termination statment in the function process_fw_state_change_wq

PATCH RESEND Sumit Saxena 1 participant 1 message Jan 4, 2016 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Nicholas Krause [mailto:[email protected]]
Sent: Friday, January 01, 2016 12:06 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: [PATCH RESEND] megaraid:Fix for loop termination statment in

the

Quoted 3 lines

function process_fw_state_change_wq

This fixes the for loop terimation for the waiting period between the

first and

Quoted 1 line

second init to make the variable wait terminate at the value of 20

rather then 30

Quoted 1 line

in other to follow the comments about this for loop of waiting for about

20

Quoted 14 lines

seconds rather then
30 in the function fw_state_change_wq between initializations.

---
 drivers/scsi/megaraid/megaraid_sas_base.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/megaraid/megaraid_sas_base.c +0 -0
index 71b884d..22fd333 100644

drivers/scsi/megaraid/megaraid_sas_base.c process_fw_state_change_wq(struct work_struct · line 3171

Quoted 4 lines
drivers/scsi/megaraid/megaraid_sas_base.c +0 -0
@@ -3168,9 +3168,8 @@ process_fw_state_change_wq(struct work_struct
 *work)
 					"state 2 starting...\n");
 
 		/*waitting for about 20 second before start the second

init*/

Quoted 8 lines
drivers/scsi/megaraid/megaraid_sas_base.c +1 -2
-		for (wait = 0; wait < 30; wait++) {
+		for (wait = 0; wait < 20; wait++)
 			msleep(1000);
-		}
 
 		if (megasas_transition_to_ready(instance, 1)) {

printk(KERN_NOTICE "megaraid_sas:adapter not
ready\n");

There should be 30 seconds delay here, comments needs to be rectified here. I will take care of this in next patch set.

Quoted 2 lines

--
2.1.4