scsi: megaraid_sas: set minimum value of resetwaittime to be 1 secs
commit e636a7a430
upstream.
Setting resetwaittime to 0 during a FW fault will result in driver not
calling the OCR.
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c24f722a82
commit
7efc41514a
@ -5290,7 +5290,8 @@ static int megasas_init_fw(struct megasas_instance *instance)
|
|||||||
instance->throttlequeuedepth =
|
instance->throttlequeuedepth =
|
||||||
MEGASAS_THROTTLE_QUEUE_DEPTH;
|
MEGASAS_THROTTLE_QUEUE_DEPTH;
|
||||||
|
|
||||||
if (resetwaittime > MEGASAS_RESET_WAIT_TIME)
|
if ((resetwaittime < 1) ||
|
||||||
|
(resetwaittime > MEGASAS_RESET_WAIT_TIME))
|
||||||
resetwaittime = MEGASAS_RESET_WAIT_TIME;
|
resetwaittime = MEGASAS_RESET_WAIT_TIME;
|
||||||
|
|
||||||
if ((scmd_timeout < 10) || (scmd_timeout > MEGASAS_DEFAULT_CMD_TIMEOUT))
|
if ((scmd_timeout < 10) || (scmd_timeout > MEGASAS_DEFAULT_CMD_TIMEOUT))
|
||||||
|
Reference in New Issue
Block a user