]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] ibmvfc: Reduce error logging noise
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 28 May 2009 21:17:26 +0000 (16:17 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 8 Jun 2009 18:07:34 +0000 (13:07 -0500)
commit7d0e462247241b8ec2d377306203b58c7f423553
tree8460e4c8b58f05b99a1b802c3be85345d3708e01
parent85e2399e925e0afa04dd6e185a910bdd3dc4626b
[SCSI] ibmvfc: Reduce error logging noise

The ibmvfc driver currently logs errors during discovery for several
transient fabric errors, which generally get retried. If retries
do not work, we see multiple errors in the log. If retries do work,
we see errors in the log which may be confusing since the retry worked.
This patch enhances the discovery time error logging to only log errors
for command failures during discovery if all allowed retries have been
used up. The existing behavior of logging all failures can be restored
by setting the hosts log_level to a value of 3 or greater.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvfc.h