diff options
author | Kevin Barnett <kevin.barnett@microsemi.com> | 2016-08-31 15:55:17 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-02 06:27:24 -0400 |
commit | d48f8fad1e435eff26c29e8e109c1a50c441e533 (patch) | |
tree | c0cc0353b9675aeeec6a56646505495e3ca5bd28 | |
parent | 7d81d2b8714ec72462a99875acbf2f976402f3f1 (diff) |
scsi: smartpqi: remove timeout for cache flush operations
Some cache flush operations can take longer than the timeout value. Best
to not impose a time limit to handle all cases.
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/smartpqi/smartpqi_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index f0672ed416cb..c6dcb3358ebe 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c | |||
@@ -407,7 +407,6 @@ static int pqi_identify_physical_device(struct pqi_ctrl_info *ctrl_info, | |||
407 | } | 407 | } |
408 | 408 | ||
409 | #define SA_CACHE_FLUSH_BUFFER_LENGTH 4 | 409 | #define SA_CACHE_FLUSH_BUFFER_LENGTH 4 |
410 | #define PQI_FLUSH_CACHE_TIMEOUT (30 * 1000) | ||
411 | 410 | ||
412 | static int pqi_flush_cache(struct pqi_ctrl_info *ctrl_info) | 411 | static int pqi_flush_cache(struct pqi_ctrl_info *ctrl_info) |
413 | { | 412 | { |
@@ -434,7 +433,7 @@ static int pqi_flush_cache(struct pqi_ctrl_info *ctrl_info) | |||
434 | goto out; | 433 | goto out; |
435 | 434 | ||
436 | rc = pqi_submit_raid_request_synchronous(ctrl_info, &request.header, | 435 | rc = pqi_submit_raid_request_synchronous(ctrl_info, &request.header, |
437 | 0, NULL, PQI_FLUSH_CACHE_TIMEOUT); | 436 | 0, NULL, NO_TIMEOUT); |
438 | 437 | ||
439 | pqi_pci_unmap(ctrl_info->pci_dev, request.sg_descriptors, 1, | 438 | pqi_pci_unmap(ctrl_info->pci_dev, request.sg_descriptors, 1, |
440 | pci_direction); | 439 | pci_direction); |