linux/drivers/scsi/fnic
Lee Duncan d2478dd256 scsi: fnic: Remove bogus ratelimit messages
Commit b43abcbbd5 ("scsi: fnic: Ratelimit printks to avoid flooding when
vlan is not set by the switch.i") added printk_ratelimit() in front of a
couple of debug-mode messages to reduce logging overrun when debugging the
driver. The code:

>           if (printk_ratelimit())
>                   FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
>                             "Start VLAN Discovery\n");

ends up calling printk_ratelimit() quite often, triggering many kernel
messages about callbacks being supressed.

The fix is to decompose FNIC_FCS_DBG(), then change the order of checks so
that printk_ratelimit() is only called if driver debugging is enabled.

Link: https://lore.kernel.org/r/20210323172756.5743-1-lduncan@suse.com
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-03-29 22:46:11 -04:00
..
cq_desc.h
cq_enet_desc.h
cq_exch_desc.h
fcpio.h
fnic_attrs.c
fnic_debugfs.c scsi: fnic: Remove unnecessary cast 2021-03-24 22:33:37 -04:00
fnic_fcs.c scsi: fnic: Remove bogus ratelimit messages 2021-03-29 22:46:11 -04:00
fnic_fip.h
fnic_io.h scsi: fnic: support to display 20G port speed 2019-01-22 21:18:33 -05:00
fnic_isr.c scsi: fnic: fix msix interrupt allocation 2019-09-07 15:29:12 -04:00
fnic_main.c scsi: fnic: Fix error return code in fnic_probe() 2020-12-07 20:31:36 -05:00
fnic_res.c
fnic_res.h
fnic_scsi.c scsi: fnic: Demote non-conformant kernel-doc headers 2021-03-18 23:41:06 -04:00
fnic_stats.h scsi: fnic: no need to check return value of debugfs_create functions 2019-01-29 00:40:53 -05:00
fnic_trace.c scsi: fnic: Rudimentary spelling fixes 2021-03-18 22:27:01 -04:00
fnic_trace.h scsi: fnic: no need to check return value of debugfs_create functions 2019-01-29 00:40:53 -05:00
fnic.h scsi: fnic: Validate io_req before others 2020-11-23 22:38:40 -05:00
Makefile
rq_enet_desc.h
vnic_cq_copy.h
vnic_cq.c
vnic_cq.h
vnic_dev.c scsi: fnic: Fix memleak in vnic_dev_init_devcmd2 2021-01-12 23:32:53 -05:00
vnic_dev.h scsi: fnic: Enable fnic devcmd2 interface 2019-01-22 21:18:35 -05:00
vnic_devcmd.h scsi: Replace zero-length array with flexible-array member 2020-03-11 23:07:56 -04:00
vnic_intr.c
vnic_intr.h
vnic_nic.h
vnic_resource.h scsi: fnic: fnic devcmd2 interface definitions 2019-01-22 21:18:34 -05:00
vnic_rq.c scsi: fnic: Remove set but not used variable 'vdev' 2019-01-29 01:16:09 -05:00
vnic_rq.h
vnic_scsi.h
vnic_stats.h
vnic_wq_copy.c scsi: fnic: Simplify the return expression of vnic_wq_copy_alloc() 2020-10-07 23:50:03 -04:00
vnic_wq_copy.h
vnic_wq.c scsi: fnic: make vnic_wq_get_ctrl and vnic_wq_alloc_ring static 2020-04-17 13:48:05 -04:00
vnic_wq.h scsi: fnic: Add devcmd2 initialization helpers 2019-01-22 21:18:34 -05:00
wq_enet_desc.h