diff options
author | Asai Thambi S P <asamymuthupa@micron.com> | 2014-05-20 10:48:56 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-20 11:51:30 -0600 |
commit | 9b204fbf0987748ec6cc4a3cde0064ecf42accd0 (patch) | |
tree | 58c669aefeaef7ac581617e712ca6ecc768f5e20 /drivers/block/mtip32xx/mtip32xx.h | |
parent | 0c29e93eae8a7f703e463c7b38ebc85d8718cae2 (diff) | |
download | talos-op-linux-9b204fbf0987748ec6cc4a3cde0064ecf42accd0.tar.gz talos-op-linux-9b204fbf0987748ec6cc4a3cde0064ecf42accd0.zip |
mtip32xx: move error handling to service thread
Move error handling to service thread, and use mtip_set_timeout()
to set timeouts for HDIO_DRIVE_TASK and HDIO_DRIVE_CMD IOCTL commands.
Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.h')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 982a88fe1ab2..4b9b554234bc 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h @@ -40,9 +40,11 @@ #define MTIP_MAX_RETRIES 2 /* Various timeout values in ms */ -#define MTIP_NCQ_COMMAND_TIMEOUT_MS 5000 -#define MTIP_IOCTL_COMMAND_TIMEOUT_MS 5000 -#define MTIP_INTERNAL_COMMAND_TIMEOUT_MS 5000 +#define MTIP_NCQ_CMD_TIMEOUT_MS 15000 +#define MTIP_IOCTL_CMD_TIMEOUT_MS 5000 +#define MTIP_INT_CMD_TIMEOUT_MS 5000 +#define MTIP_QUIESCE_IO_TIMEOUT_MS (MTIP_NCQ_CMD_TIMEOUT_MS * \ + (MTIP_MAX_RETRIES + 1)) /* check for timeouts every 500ms */ #define MTIP_TIMEOUT_CHECK_PERIOD 500 |