scsi: aacraid: Change wait time for fib completion
Change the completion wait time for the fibs in the reset and abort callback from 2 minutes to 15 seconds. 2 minutes is too long for waiting for completion. Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> Reviewed-by: David Carroll <david.carroll@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
fed820073f
commit
2a4a62c03f
|
@ -684,8 +684,8 @@ static int aac_eh_abort(struct scsi_cmnd* cmd)
|
||||||
(fib_callback) aac_hba_callback,
|
(fib_callback) aac_hba_callback,
|
||||||
(void *) cmd);
|
(void *) cmd);
|
||||||
|
|
||||||
/* Wait up to 2 minutes for completion */
|
/* Wait up to 15 secs for completion */
|
||||||
for (count = 0; count < 120; ++count) {
|
for (count = 0; count < 15; ++count) {
|
||||||
if (cmd->SCp.sent_command) {
|
if (cmd->SCp.sent_command) {
|
||||||
ret = SUCCESS;
|
ret = SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
@ -840,8 +840,8 @@ static int aac_eh_reset(struct scsi_cmnd* cmd)
|
||||||
(fib_callback) aac_hba_callback,
|
(fib_callback) aac_hba_callback,
|
||||||
(void *) cmd);
|
(void *) cmd);
|
||||||
|
|
||||||
/* Wait up to 2 minutes for completion */
|
/* Wait up to 15 seconds for completion */
|
||||||
for (count = 0; count < 120; ++count) {
|
for (count = 0; count < 15; ++count) {
|
||||||
if (cmd->SCp.sent_command) {
|
if (cmd->SCp.sent_command) {
|
||||||
ret = SUCCESS;
|
ret = SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue