You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[SCSI] bfa: add ioc state checking
This patch adds ioc state checking while enabling a port. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
604158ade0
commit
ba8345821a
@@ -1393,6 +1393,9 @@ bfa_fcport_enable(struct bfa_s *bfa)
|
||||
return BFA_STATUS_PBC;
|
||||
}
|
||||
|
||||
if (bfa_ioc_is_disabled(&bfa->ioc))
|
||||
return BFA_STATUS_IOC_DISABLED;
|
||||
|
||||
if (fcport->diag_busy)
|
||||
return BFA_STATUS_DIAG_BUSY;
|
||||
else if (bfa_sm_cmp_state
|
||||
|
||||
Reference in New Issue
Block a user