]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: smartpqi: remove timeout for cache flush operations
authorKevin Barnett <kevin.barnett@microsemi.com>
Wed, 31 Aug 2016 19:55:17 +0000 (14:55 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Sep 2016 10:27:24 +0000 (06:27 -0400)
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>
drivers/scsi/smartpqi/smartpqi_init.c

index f0672ed416cbce2e5e09eb1fdb45e4956fd45228..c6dcb3358ebe2a9e2fc6a5114a6c3c08a2a67c78 100644 (file)
@@ -407,7 +407,6 @@ static int pqi_identify_physical_device(struct pqi_ctrl_info *ctrl_info,
 }
 
 #define SA_CACHE_FLUSH_BUFFER_LENGTH   4
-#define PQI_FLUSH_CACHE_TIMEOUT                (30 * 1000)
 
 static int pqi_flush_cache(struct pqi_ctrl_info *ctrl_info)
 {
@@ -434,7 +433,7 @@ static int pqi_flush_cache(struct pqi_ctrl_info *ctrl_info)
                goto out;
 
        rc = pqi_submit_raid_request_synchronous(ctrl_info, &request.header,
-               0, NULL, PQI_FLUSH_CACHE_TIMEOUT);
+               0, NULL, NO_TIMEOUT);
 
        pqi_pci_unmap(ctrl_info->pci_dev, request.sg_descriptors, 1,
                pci_direction);