lpfc 8.1.12 : Add support for async scanning
Subsystems (2)
PATCH 13/16 lpfc 8.1.12 : Add support for async scanning
Add support for async scanning
Notes: This is the async scan patch to our driver from Matthew Wilcox.
The async scan logic is still subject to errors in insmod/rmmod, as the async scan threads don't get shutdown when the module unloads underneath them. See http://marc.info/?l=linux-scsi&m=117551999925582&w=2
Signed-off-by James Smart <[email protected]>
drivers/scsi/lpfc/lpfc_crtn.h +3 -0
@@ -200,6 +200,9 @@ void lpfc_mbuf_free(struct lpfc_hba *, v/* Function prototypes. */ const char *lpfc_info (struct Scsi_Host *); +void lpfc_scan_start (struct Scsi_Host *); +int lpfc_scan_finished (struct Scsi_Host *,unsigned long ); +void lpfc_get_cfgparam (struct lpfc_hba *);int lpfc_alloc_sysfs_attr (struct lpfc_hba *);void lpfc_free_sysfs_attr (struct lpfc_hba *);
drivers/scsi/lpfc/lpfc_init.c +155 -150
347 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_scsi.c +2 -0
@@ -1351,6 +1351,8 @@ struct scsi_host_template lpfc_template .slave_alloc = lpfc_slave_alloc, .slave_configure = lpfc_slave_configure, .slave_destroy = lpfc_slave_destroy, + .scan_finished = lpfc_scan_finished, + .scan_start = lpfc_scan_start, .this_id = -1, .sg_tablesize = LPFC_SG_SEG_CNT, .cmd_per_lun = LPFC_CMD_PER_LUN,