mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
scsi: lpfc: Fix issue_lip if link is disabled
[ Upstream commit 2289e9598d ]
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 <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a9bcbce385
commit
d5d331cdfc
@@ -871,7 +871,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user