[SCSI] qla2xxx: Reinitialize the device initialize timeout value after reset on ISP82xx.
authorGiridhar Malavali <giridhar.malavali@qlogic.com>
Wed, 23 Feb 2011 23:27:08 +0000 (15:27 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 25 Feb 2011 17:41:37 +0000 (12:41 -0500)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_nx.c

index b37445d..4ff80ee 100644 (file)
@@ -3557,6 +3557,8 @@ qla82xx_device_state_handler(scsi_qla_host_t *vha)
                        break;
                case QLA82XX_DEV_NEED_RESET:
                        qla82xx_need_reset_handler(vha);
+                       dev_init_timeout = jiffies +
+                               (ha->nx_dev_init_timeout * HZ);
                        break;
                case QLA82XX_DEV_NEED_QUIESCENT:
                        qla82xx_need_qsnt_handler(vha);