提交 c8582ad9 编写于 作者: S Saurav Kashyap 提交者: James Bottomley

[SCSI] qla2xxx: Prevent CPU lockups when "ql2xdontresethba" module param is set.

Driver is not releasing the lock if ql2xdontresethba is set, this might lead
to a lockup.
Signed-off-by: NSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: NChad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 999916dc
...@@ -3763,6 +3763,11 @@ qla82xx_device_state_handler(scsi_qla_host_t *vha) ...@@ -3763,6 +3763,11 @@ qla82xx_device_state_handler(scsi_qla_host_t *vha)
case QLA82XX_DEV_NEED_RESET: case QLA82XX_DEV_NEED_RESET:
if (!ql2xdontresethba) if (!ql2xdontresethba)
qla82xx_need_reset_handler(vha); qla82xx_need_reset_handler(vha);
else {
qla82xx_idc_unlock(ha);
msleep(1000);
qla82xx_idc_lock(ha);
}
dev_init_timeout = jiffies + dev_init_timeout = jiffies +
(ha->nx_dev_init_timeout * HZ); (ha->nx_dev_init_timeout * HZ);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册