[SCSI] qla4xxx: Fix clear ddb mbx command failure issue.
authorManish Rangankar <manish.rangankar@qlogic.com>
Tue, 24 Apr 2012 05:32:34 +0000 (22:32 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 30 May 2012 08:58:30 +0000 (12:58 +0400)
commit90599b62ca80a0d2f88aa88bc05bf8795731fab8
tree74241acf30bd69fed2c91907413daa595b7048f6
parent3d948e2a21ed8641a84ad437d2544b215d747916
[SCSI] qla4xxx: Fix clear ddb mbx command failure issue.

Allow ddb state to change to DDB_DS_NO_CONNECTION_ACTIVE or
DDB_DS_SESSION_FAILED before issuing clear ddb mailbox cmd,
because clear ddb mailbox cmd fails if the ddb state is not
equal to DDB_DS_NO_CONNECTION_ACTIVE or DDB_DS_SESSION_FAILED.

Signed-off-by: Manish Rangankar <manish.rangankar@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_os.c