lpfc: Remove bg debugfs buffers
Subsystems (2)
PATCH 1/1 lpfc: Remove bg debugfs buffers
Capturing and downloading dif command data and dif data was done a dozen years ago and no longer being used. Also creates a potential security hole.
Remove the debugfs buffer for dif debugging.
--- drivers/scsi/lpfc/lpfc.h | 2 - drivers/scsi/lpfc/lpfc_crtn.h | 10 --- drivers/scsi/lpfc/lpfc_debugfs.c | 134 --------------------------------------- drivers/scsi/lpfc/lpfc_init.c | 70 -------------------- drivers/scsi/lpfc/lpfc_scsi.c | 79 ----------------------- 5 files changed, 295 deletions(-)
drivers/scsi/lpfc/lpfc.h +0 -2
@@ -1039,8 +1039,6 @@ struct lpfc_hba {struct dentry *debug_hbqinfo;struct dentry *debug_dumpHostSlim;struct dentry *debug_dumpHBASlim; -struct dentry *debug_dumpData;/* BlockGuard BPL */ -struct dentry *debug_dumpDif;/* BlockGuard BPL */ struct dentry *debug_InjErrLBA;/* LBA to inject errors at */ struct dentry *debug_InjErrNPortID;/* NPortID to inject errors at */ struct dentry *debug_InjErrWWPN;/* WWPN to inject errors at */
drivers/scsi/lpfc/lpfc_crtn.h +0 -10
@@ -433,16 +433,6 @@ int lpfc_sli4_get_allocated_extnts(struct lpfc_hba *, uint16_t,int lpfc_sli4_get_avail_extnt_rsrc (struct lpfc_hba *,uint16_t ,uint16_t *,uint16_t *); -/* externs BlockGuard */ -extern char *_dump_buf_data; -extern unsigned long _dump_buf_data_order; -extern char *_dump_buf_dif; -extern unsigned long _dump_buf_dif_order; -extern spinlock_t _dump_buf_lock; -extern int _dump_buf_done; -extern spinlock_t pgcnt_lock; -extern unsigned int pgcnt; -/* Interface exported by fabric iocb scheduler */ void lpfc_fabric_abort_nport (struct lpfc_nodelist *);void lpfc_fabric_abort_hba (struct lpfc_hba *);
drivers/scsi/lpfc/lpfc_debugfs.c +0 -134
164 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_init.c +0 -70
94 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_scsi.c +0 -79
97 lines not on this page · raw message
Signature · 1 line
2.13.7
Quoted 10 lines · James Smart
Capturing and downloading dif command data and dif data was done a dozen years ago and no longer being used. Also creates a potential security hole.
Remove the debugfs buffer for dif debugging.
Signed-off-by Dick Kennedy <[email protected]>Signed-off-by James Smart <[email protected]>CC KyleMahlkuch <[email protected]>CC Hannes Reinecke <[email protected]>
Quoted 8 lines
--- drivers/scsi/lpfc/lpfc.h | 2 - drivers/scsi/lpfc/lpfc_crtn.h | 10 --- drivers/scsi/lpfc/lpfc_debugfs.c | 134 --------------------------------------- drivers/scsi/lpfc/lpfc_init.c | 70 -------------------- drivers/scsi/lpfc/lpfc_scsi.c | 79 ----------------------- 5 files changed, 295 deletions(-)
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
Martin K. Petersen
AppliedJames,
Quoted 5 lines
Capturing and downloading dif command data and dif data was done a dozen years ago and no longer being used. Also creates a potential security hole.
Remove the debugfs buffer for dif debugging.
Applied to 5.4/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering