Unverified Commit 989e265b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8882 scsi: lpfc: Move NPIV's transport unregistration to after resource clean up

parents ae0bc942 b875638c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -668,10 +668,6 @@ lpfc_vport_delete(struct fc_vport *fc_vport)
		ns_ndlp_referenced = true;
	}

	/* Remove FC host and then SCSI host with the vport */
	fc_remove_host(shost);
	scsi_remove_host(shost);

	ndlp = lpfc_findnode_did(phba->pport, Fabric_DID);

	/* In case of driver unload, we shall not perform fabric logo as the
@@ -774,6 +770,10 @@ lpfc_vport_delete(struct fc_vport *fc_vport)

skip_logo:

	/* Remove FC host and then SCSI host with the vport */
	fc_remove_host(shost);
	scsi_remove_host(shost);

	/*
	 * If the NameServer ndlp has been incremented to allow the DA_ID CT
	 * command to be sent, decrement the ndlp now.