scsi: libfc: do not flood console with messages 'libfc: queue full ...'
authorHannes Reinecke <hare@suse.de>
Thu, 27 Apr 2017 14:25:03 +0000 (16:25 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 May 2017 01:24:28 +0000 (21:24 -0400)
commitc1061255031dea76ee9e082d081b88ac6d6c8265
tree188ba40ab912146d50ee801bb645a23b410d3601
parent2d3e4866dea96b0506395b47bfefb234f2088dac
scsi: libfc: do not flood console with messages 'libfc: queue full ...'

When the FCoE sending side becomes congested libfc tries to reduce the
queue depth on the host; however due to the built-in lag before
attempting to ramp down the queue depth _again_ the message log is
flooded with the following message:

libfc: queue full, reducing can_queue to 512

With this patch the message is printed only once (ie when it's
actually changed).

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_fcp.c