Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: hpsa: remove timeout from TURs

There are times when a TUR can take longer than the DEFAULT_TIMEOUT
value. The timeout code is not correct as the function exits with an
automatic as the completion variable...To be fixed later.

Remove the TUR timeout.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Don Brace and committed by
Martin K. Petersen
1edb6934 a45bcc4e

+1 -1
+1 -1
drivers/scsi/hpsa.c
··· 5824 5824 /* Send the Test Unit Ready, fill_cmd can't fail, no mapping */ 5825 5825 (void) fill_cmd(c, TEST_UNIT_READY, h, 5826 5826 NULL, 0, 0, lunaddr, TYPE_CMD); 5827 - rc = hpsa_scsi_do_simple_cmd(h, c, reply_queue, DEFAULT_TIMEOUT); 5827 + rc = hpsa_scsi_do_simple_cmd(h, c, reply_queue, NO_TIMEOUT); 5828 5828 if (rc) 5829 5829 return rc; 5830 5830 /* no unmap needed here because no data xfer. */