Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5283bfb6 authored by Manish Rangankar's avatar Manish Rangankar Committed by James Bottomley
Browse files

[SCSI] qla4xxx: Fixed device blocked issue on link up-down.



Devices are getting blocked during continuous link up and down.
Solution is, during relogin unblock the session, using iscsi_conn_start,
before sending connection logged in event.

JIRA Key: UPSISCSI-138

Signed-off-by: default avatarManish Rangankar <manish.rangankar@qlogic.com>
Signed-off-by: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 98270ab4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -900,6 +900,7 @@ int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
		switch (state) {
		case DDB_DS_SESSION_ACTIVE:
		case DDB_DS_DISCOVERY:
			iscsi_conn_start(ddb_entry->conn);
			iscsi_conn_login_event(ddb_entry->conn,
					       ISCSI_CONN_STATE_LOGGED_IN);
			qla4xxx_update_session_conn_param(ha, ddb_entry);
@@ -935,6 +936,7 @@ int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
		switch (state) {
		case DDB_DS_SESSION_ACTIVE:
		case DDB_DS_DISCOVERY:
			iscsi_conn_start(ddb_entry->conn);
			iscsi_conn_login_event(ddb_entry->conn,
					       ISCSI_CONN_STATE_LOGGED_IN);
			qla4xxx_update_session_conn_param(ha, ddb_entry);
+0 −1
Original line number Diff line number Diff line
@@ -1165,7 +1165,6 @@ static int qla4xxx_conn_start(struct iscsi_cls_conn *cls_conn)
		      ddb_entry->fw_ddb_device_state));

exit_set_param:
	iscsi_conn_start(cls_conn);
	ret = 0;

exit_conn_start: