[patch 037/108] sym53c8xx: ratelimit parity errors

Greg KH
2009-07-01T00:56:58Z

[-- Attachment #1: sym53c8xx-ratelimit-parity-errors.patch --]
[-- Type: text/plain, Size: 1108 bytes --]

2.6.30-stable review patch. If anyone has any objections, please let us know.

------------------

From: John Stoffel <john@stoffel.org>

commit 75be63bcf73ebdd1fdc1d49f6bf2d1326a1ba7de upstream.

This makes a huge difference when you have a serial console on bootup to limit
these messages to a sane number.

Signed-off-by: John Stoffel <john@stoffel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
drivers/scsi/sym53c8xx_2/sym_hipd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--- a/drivers/scsi/sym53c8xx_2/sym_hipd.c
+++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c
@@ -2312,8 +2312,9 @@ static void sym_int_par (struct sym_hcb
int phase = cmd & 7;
struct sym_ccb *cp = sym_ccb_from_dsa(np, dsa);

- printf("%s: SCSI parity error detected: SCR1=%d DBC=%x SBCL=%x\n",
- sym_name(np), hsts, dbc, sbcl);
+ if (printk_ratelimit())
+ printf("%s: SCSI parity error detected: SCR1=%d DBC=%x SBCL=%x\n",
+ sym_name(np), hsts, dbc, sbcl);

/*
* Check that the chip is connected to the SCSI BUS.