diff options
author | Lee Duncan <lduncan@suse.com> | 2021-03-23 10:27:56 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-29 22:46:11 -0400 |
commit | d2478dd256915fd0a971a1daba23cb9cadde1132 (patch) | |
tree | aa33d40225df49740ede79663e2616d28e0c90d2 /drivers/scsi/scsi_sysfs.c | |
parent | 10d91a15f26e76aec9e6fed31df7e8065f40770f (diff) | |
download | linux-stable-d2478dd256915fd0a971a1daba23cb9cadde1132.tar.gz linux-stable-d2478dd256915fd0a971a1daba23cb9cadde1132.tar.bz2 linux-stable-d2478dd256915fd0a971a1daba23cb9cadde1132.zip |
scsi: fnic: Remove bogus ratelimit messages
Commit b43abcbbd5b1 ("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>
Diffstat (limited to 'drivers/scsi/scsi_sysfs.c')
0 files changed, 0 insertions, 0 deletions