aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohank@serverengines.com>2010-01-04 18:41:23 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-01-18 11:48:24 -0500
commitda7408c800e3ae293275f52497d0ef7a9b09c9e4 (patch)
treeaa0a1fcc089c2ad5bce7f6ba9407da0241c40cdb /drivers/scsi/be2iscsi
parent756d29c8c7ed8887ed7d752371ce2f6d12399267 (diff)
[SCSI] be2iscsi: The session failure only when Link Goes down
This fixes a situation where the sessions were being killed whenever LinkUP is notified rather than LinkDown Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r--drivers/scsi/be2iscsi/be_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
index d4a0d1da4875..44e69bdf359a 100644
--- a/drivers/scsi/be2iscsi/be_cmds.c
+++ b/drivers/scsi/be2iscsi/be_cmds.c
@@ -161,13 +161,13 @@ void beiscsi_async_link_state_process(struct beiscsi_hba *phba,
161 SE_DEBUG(DBG_LVL_1, "Link Down on Physical Port %d \n", 161 SE_DEBUG(DBG_LVL_1, "Link Down on Physical Port %d \n",
162 evt->physical_port); 162 evt->physical_port);
163 phba->state |= BE_ADAPTER_LINK_DOWN; 163 phba->state |= BE_ADAPTER_LINK_DOWN;
164 iscsi_host_for_each_session(phba->shost,
165 be2iscsi_fail_session);
164 break; 166 break;
165 case ASYNC_EVENT_LINK_UP: 167 case ASYNC_EVENT_LINK_UP:
166 phba->state = BE_ADAPTER_UP; 168 phba->state = BE_ADAPTER_UP;
167 SE_DEBUG(DBG_LVL_1, "Link UP on Physical Port %d \n", 169 SE_DEBUG(DBG_LVL_1, "Link UP on Physical Port %d \n",
168 evt->physical_port); 170 evt->physical_port);
169 iscsi_host_for_each_session(phba->shost,
170 be2iscsi_fail_session);
171 break; 171 break;
172 default: 172 default:
173 SE_DEBUG(DBG_LVL_1, "Unexpected Async Notification %d on" 173 SE_DEBUG(DBG_LVL_1, "Unexpected Async Notification %d on"