diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_config.c b/drivers/scsi/mpt2sas/mpt2sas_config.c index 58cfb97846f7..1c6658c60239 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_config.c +++ b/drivers/scsi/mpt2sas/mpt2sas_config.c | |||
@@ -247,6 +247,12 @@ _config_request(struct MPT2SAS_ADAPTER *ioc, Mpi2ConfigRequest_t | |||
247 | retry_count = 0; | 247 | retry_count = 0; |
248 | 248 | ||
249 | retry_config: | 249 | retry_config: |
250 | if (retry_count) { | ||
251 | if (retry_count > 2) /* attempt only 2 retries */ | ||
252 | return -EFAULT; | ||
253 | printk(MPT2SAS_INFO_FMT "%s: attempting retry (%d)\n", | ||
254 | ioc->name, __func__, retry_count); | ||
255 | } | ||
250 | wait_state_count = 0; | 256 | wait_state_count = 0; |
251 | ioc_state = mpt2sas_base_get_iocstate(ioc, 1); | 257 | ioc_state = mpt2sas_base_get_iocstate(ioc, 1); |
252 | while (ioc_state != MPI2_IOC_STATE_OPERATIONAL) { | 258 | while (ioc_state != MPI2_IOC_STATE_OPERATIONAL) { |