Skip to contentSkip to conversation

lpfc: Remove bg debugfs buffers

PATCH Applied James Smart 3 participants 3 messages Aug 27, 2019 – Aug 29, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 73540bb13b3e..691acbdcc46d 100644
@@ -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
index 8b84acc95a07..b2ad8c750486 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

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)
#2 lore raw
In reply to James Smart

James,

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