Commit 1aa529d4 authored by Sreekanth Reddy's avatar Sreekanth Reddy Committed by Martin K. Petersen

scsi: mpi3mr: Increase I/O timeout value to 60s

Set each SCSI device's default I/O timeout and default error handling I/O
timeout to 60s.

Link: https://lore.kernel.org/r/20220505184808.24049-3-sreekanth.reddy@broadcom.comSigned-off-by: default avatarSreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent fcb9e738
...@@ -124,6 +124,9 @@ extern atomic64_t event_counter; ...@@ -124,6 +124,9 @@ extern atomic64_t event_counter;
#define MPI3MR_WATCHDOG_INTERVAL 1000 /* in milli seconds */ #define MPI3MR_WATCHDOG_INTERVAL 1000 /* in milli seconds */
#define MPI3MR_SCMD_TIMEOUT (60 * HZ)
#define MPI3MR_EH_SCMD_TIMEOUT (60 * HZ)
/* Internal admin command state definitions*/ /* Internal admin command state definitions*/
#define MPI3MR_CMD_NOTUSED 0x8000 #define MPI3MR_CMD_NOTUSED 0x8000
#define MPI3MR_CMD_COMPLETE 0x0001 #define MPI3MR_CMD_COMPLETE 0x0001
......
...@@ -3725,6 +3725,10 @@ static int mpi3mr_slave_configure(struct scsi_device *sdev) ...@@ -3725,6 +3725,10 @@ static int mpi3mr_slave_configure(struct scsi_device *sdev)
return -ENXIO; return -ENXIO;
mpi3mr_change_queue_depth(sdev, tgt_dev->q_depth); mpi3mr_change_queue_depth(sdev, tgt_dev->q_depth);
sdev->eh_timeout = MPI3MR_EH_SCMD_TIMEOUT;
blk_queue_rq_timeout(sdev->request_queue, MPI3MR_SCMD_TIMEOUT);
switch (tgt_dev->dev_type) { switch (tgt_dev->dev_type) {
case MPI3_DEVICE_DEVFORM_PCIE: case MPI3_DEVICE_DEVFORM_PCIE:
/*The block layer hw sector size = 512*/ /*The block layer hw sector size = 512*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment