Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300500 > unrolled thread

RE: [PATCH RESEND] megaraid:Fix for loop termination statment in the function process_fw_state_change_wq

Started bySumit Saxena <sumit.saxena@avagotech.com>
First post2016-01-04 06:50 +0100
Last post2016-01-04 06:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: [PATCH RESEND] megaraid:Fix for loop termination statment in the  function process_fw_state_change_wq Sumit Saxena <sumit.saxena@avagotech.com> - 2016-01-04 06:50 +0100

#1300500 — RE: [PATCH RESEND] megaraid:Fix for loop termination statment in the function process_fw_state_change_wq

FromSumit Saxena <sumit.saxena@avagotech.com>
Date2016-01-04 06:50 +0100
SubjectRE: [PATCH RESEND] megaraid:Fix for loop termination statment in the function process_fw_state_change_wq
Message-ID<qN6bM-7q1-7@gated-at.bofh.it>
> -----Original Message-----
> From: Nicholas Krause [mailto:xerofoify@gmail.com]
> Sent: Friday, January 01, 2016 12:06 PM
> To: kashyap.desai@avagotech.com
> Cc: sumit.saxena@avagotech.com; uday.lingala@avagotech.com;
> JBottomley@odin.com; martin.petersen@oracle.com;
> megaraidlinux.pdl@avagotech.com; linux-scsi@vger.kernel.org; linux-
> kernel@vger.kernel.org
> Subject: [PATCH RESEND] megaraid:Fix for loop termination statment in
the
> function process_fw_state_change_wq
>
> This fixes the for loop terimation for the waiting period between the
first and
> second init to make the variable wait terminate at the value of 20
rather then 30
> in other to follow the comments about this for loop of waiting for about
20
> seconds rather then
> 30 in the function fw_state_change_wq between initializations.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
>  drivers/scsi/megaraid/megaraid_sas_base.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c
> b/drivers/scsi/megaraid/megaraid_sas_base.c
> index 71b884d..22fd333 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_base.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_base.c
> @@ -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*/
> -		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.
> --
> 2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web