scsi: qla2xxx: Cleanup NPIV host in target mode during config teardown
When we tear down the NPIV host configuration in target mode, the qla_tgt struct was left dangling on the global list. This patch cleans up link list and frees memory. Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
1f4c7c380b
commit
bdbe24de28
@@ -705,6 +705,7 @@ struct qla_tgt_func_tmpl {
|
||||
int (*get_dif_tags)(struct qla_tgt_cmd *cmd, uint16_t *pfw_prot_opts);
|
||||
int (*chk_dif_tags)(uint32_t tag);
|
||||
void (*add_target)(struct scsi_qla_host *);
|
||||
void (*remove_target)(struct scsi_qla_host *);
|
||||
};
|
||||
|
||||
int qla2x00_wait_for_hba_online(struct scsi_qla_host *);
|
||||
|
||||
Reference in New Issue
Block a user