aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_mbx.c
diff options
context:
space:
mode:
authorNilesh Javali <nilesh.javali@qlogic.com>2013-12-16 06:49:40 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:13 -0400
commitde2efea62bc50d1277cd8ad91e00aac4bb793146 (patch)
tree38d92127a863ac7d3c1d5e3b7e6212f8cc54fdeb /drivers/scsi/qla4xxx/ql4_mbx.c
parentbb5649f3eb43f47d07fdfbfbc1ce5b0dd2aef546 (diff)
[SCSI] qla4xxx: Clear DDB index map upon connection close failure
Issue: qla4xxx Unable to clear DDB indices when logout fails due to failure of connection close mbox command. Root cause: If login to session fail, iscsiadm make call to destroy_session. qla4xxx driver does not free ddb index map before free_ddb() Fix: Clear DDB Index map before free_ddb in "destroy_session" in case of connection close mailbox command failure with 4005h. Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_mbx.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_mbx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c
index 9ae8ca3b69f9..f0dc6b321c8d 100644
--- a/drivers/scsi/qla4xxx/ql4_mbx.c
+++ b/drivers/scsi/qla4xxx/ql4_mbx.c
@@ -1002,6 +1002,10 @@ int qla4xxx_session_logout_ddb(struct scsi_qla_host *ha,
1002 "%s: MBOX_CMD_CONN_CLOSE_SESS_LOGOUT " 1002 "%s: MBOX_CMD_CONN_CLOSE_SESS_LOGOUT "
1003 "failed sts %04X %04X", __func__, 1003 "failed sts %04X %04X", __func__,
1004 mbox_sts[0], mbox_sts[1])); 1004 mbox_sts[0], mbox_sts[1]));
1005 if ((mbox_sts[0] == MBOX_STS_COMMAND_ERROR) &&
1006 (mbox_sts[1] == DDB_NOT_LOGGED_IN)) {
1007 set_bit(DDB_CONN_CLOSE_FAILURE, &ddb_entry->flags);
1008 }
1005 } 1009 }
1006 1010
1007 return status; 1011 return status;