From: Vikas Chaudhary Date: Sat, 10 Jul 2010 09:19:01 +0000 (+0530) Subject: [SCSI] qla4xxx: unblock iscsi session after setting ddb state online. X-Git-Tag: v2.6.36-rc1~570^2~108 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=363863256a711819130ea4ac210ee001bc80c3b2;p=karo-tx-linux.git [SCSI] qla4xxx: unblock iscsi session after setting ddb state online. Once the device goes *missing*, driver blocks the session ie iscsi_block_session() to stall the I/O. So after device comes back *online*, driver needs to unblock the session ie iscsi_unblock_session(), else I/Os will fail even if ddb_state is ONLINE. Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c index 8947743e54d7..16565226f55c 100644 --- a/drivers/scsi/qla4xxx/ql4_init.c +++ b/drivers/scsi/qla4xxx/ql4_init.c @@ -993,6 +993,7 @@ int qla4xxx_reinitialize_ddb_list(struct scsi_qla_host *ha) DEBUG2(printk ("scsi%ld: %s: ddb index [%d] marked " "ONLINE\n", ha->host_no, __func__, ddb_entry->fw_ddb_index)); + iscsi_unblock_session(ddb_entry->sess); } else if (atomic_read(&ddb_entry->state) == DDB_STATE_ONLINE) qla4xxx_mark_device_missing(ha, ddb_entry); }