projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7909b3
)
[SCSI] be2iscsi: Fix checking Adapter state while establishing CXN
author
Jayamohan Kallickal
<
[email protected]
>
Sat, 6 Apr 2013 03:38:33 +0000
(20:38 -0700)
committer
James Bottomley
<
[email protected]
>
Thu, 2 May 2013 15:15:54 +0000
(08:15 -0700)
Before tyring to establish a CXN with the target, check if the adapter is in
a stable state
Signed-off-by: John Soni Jose <
[email protected]
>
Signed-off-by: Jayamohan Kallickal <
[email protected]
>
Reviewed-by: Mike Christie <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/be2iscsi/be_iscsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/be2iscsi/be_iscsi.c
b/drivers/scsi/be2iscsi/be_iscsi.c
index 1bf0285061ff0bf4b33fb25b71f84cf158128b9a..33db49b8e5c36c1d239dd997a3404e2c7ccc9b8f 100644
(file)
--- a/
drivers/scsi/be2iscsi/be_iscsi.c
+++ b/
drivers/scsi/be2iscsi/be_iscsi.c
@@
-1128,6
+1128,13
@@
beiscsi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
return ERR_PTR(ret);
}
+ if (beiscsi_error(phba)) {
+ ret = -EIO;
+ beiscsi_log(phba, KERN_WARNING, BEISCSI_LOG_CONFIG,
+ "BS_%d : The FW state Not Stable!!!\n");
+ return ERR_PTR(ret);
+ }
+
if (phba->state != BE_ADAPTER_UP) {
ret = -EBUSY;
beiscsi_log(phba, KERN_WARNING, BEISCSI_LOG_CONFIG,