From: Don Brace Date: Tue, 12 Mar 2019 18:11:45 +0000 (-0500) Subject: scsi: hpsa: remove timeout from TURs X-Git-Tag: v5.15~6074^2~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1edb69344c882bdf54cd7a448faf6d1fdf3e80bb;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Scott Teel Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index bd98a96..ff0e3cc 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -5824,7 +5824,7 @@ static int hpsa_send_test_unit_ready(struct ctlr_info *h, /* Send the Test Unit Ready, fill_cmd can't fail, no mapping */ (void) fill_cmd(c, TEST_UNIT_READY, h, NULL, 0, 0, lunaddr, TYPE_CMD); - rc = hpsa_scsi_do_simple_cmd(h, c, reply_queue, DEFAULT_TIMEOUT); + rc = hpsa_scsi_do_simple_cmd(h, c, reply_queue, NO_TIMEOUT); if (rc) return rc; /* no unmap needed here because no data xfer. */