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:
161df4f
)
scsi: lpfc: Fix issue_lip if link is disabled
author
James Smart
<
[email protected]
>
Tue, 30 Jan 2018 23:58:55 +0000
(15:58 -0800)
committer
Martin K. Petersen
<
[email protected]
>
Mon, 12 Feb 2018 16:43:23 +0000
(11:43 -0500)
The driver ignored checks on whether the link should be kept
administratively down after a link bounce. Correct the checks.
Signed-off-by: Dick Kennedy <
[email protected]
>
Signed-off-by: James Smart <
[email protected]
>
Reviewed-by: Hannes Reinecke <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/lpfc/lpfc_attr.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_attr.c
b/drivers/scsi/lpfc/lpfc_attr.c
index 06138b618220ab1a0cf9571b544c0a6a9fcc1c7a..e25e63eb5a53fff7cb1bcd63f340e26ff5ae3353 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_attr.c
+++ b/
drivers/scsi/lpfc/lpfc_attr.c
@@
-911,7
+911,12
@@
lpfc_issue_lip(struct Scsi_Host *shost)
LPFC_MBOXQ_t *pmboxq;
int mbxstatus = MBXERR_ERROR;
+ /*
+ * If the link is offline, disabled or BLOCK_MGMT_IO
+ * it doesn't make any sense to allow issue_lip
+ */
if ((vport->fc_flag & FC_OFFLINE_MODE) ||
+ (phba->hba_flag & LINK_DISABLED) ||
(phba->sli.sli_flag & LPFC_BLOCK_MGMT_IO))
return -EPERM;