aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index 34b395d2d98d..aaa82453ae74 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -306,6 +306,10 @@ static inline void mtip_issue_ncq_command(struct mtip_port *port, int tag)
306 port->cmd_issue[MTIP_TAG_INDEX(tag)]); 306 port->cmd_issue[MTIP_TAG_INDEX(tag)]);
307 307
308 spin_unlock_irqrestore(&port->cmd_issue_lock, flags); 308 spin_unlock_irqrestore(&port->cmd_issue_lock, flags);
309
310 /* Set the command's timeout value.*/
311 port->commands[tag].comp_time = jiffies + msecs_to_jiffies(
312 MTIP_NCQ_COMMAND_TIMEOUT_MS);
309} 313}
310 314
311/* 315/*
@@ -824,10 +828,6 @@ static void mtip_handle_tfe(struct driver_data *dd)
824 828
825 set_bit(tag, tagaccum); 829 set_bit(tag, tagaccum);
826 830
827 /* Update the timeout value. */
828 port->commands[tag].comp_time =
829 jiffies + msecs_to_jiffies(
830 MTIP_NCQ_COMMAND_TIMEOUT_MS);
831 /* Re-issue the command. */ 831 /* Re-issue the command. */
832 mtip_issue_ncq_command(port, tag); 832 mtip_issue_ncq_command(port, tag);
833 833
@@ -2204,9 +2204,7 @@ static void mtip_hw_submit_io(struct driver_data *dd, sector_t start,
2204 /* Issue the command to the hardware */ 2204 /* Issue the command to the hardware */
2205 mtip_issue_ncq_command(port, tag); 2205 mtip_issue_ncq_command(port, tag);
2206 2206
2207 /* Set the command's timeout value.*/ 2207 return;
2208 port->commands[tag].comp_time = jiffies + msecs_to_jiffies(
2209 MTIP_NCQ_COMMAND_TIMEOUT_MS);
2210} 2208}
2211 2209
2212/* 2210/*
@@ -2538,10 +2536,6 @@ static int mtip_service_thread(void *data)
2538 /* Issue the command to the hardware */ 2536 /* Issue the command to the hardware */
2539 mtip_issue_ncq_command(port, slot); 2537 mtip_issue_ncq_command(port, slot);
2540 2538
2541 /* Set the command's timeout value.*/
2542 port->commands[slot].comp_time = jiffies +
2543 msecs_to_jiffies(MTIP_NCQ_COMMAND_TIMEOUT_MS);
2544
2545 clear_bit(slot, port->cmds_to_issue); 2539 clear_bit(slot, port->cmds_to_issue);
2546 } 2540 }
2547 2541