diff options
author | Akinobu Mita <mita@miraclelinux.com> | 2006-09-29 02:01:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 09:18:23 -0700 |
commit | 4050914f7c2665736a82265a029466071a90094e (patch) | |
tree | 529bf07480c936bb9e3be5b80ac0eb948946056b /drivers/char/tty_io.c | |
parent | 1a036cdd955b695b7e09e6505e6d6eba697f043e (diff) | |
download | kernel_samsung_tuna-4050914f7c2665736a82265a029466071a90094e.zip kernel_samsung_tuna-4050914f7c2665736a82265a029466071a90094e.tar.gz kernel_samsung_tuna-4050914f7c2665736a82265a029466071a90094e.tar.bz2 |
[PATCH] rate limiting for the ldisc open failure messages
This patch limits the messages when ldisc open faulures happen. It happens
under memory pressure.
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 6354373..3337417 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -2065,8 +2065,9 @@ fail_no_mem: /* call the tty release_mem routine to clean out this slot */ release_mem_out: - printk(KERN_INFO "init_dev: ldisc open failed, " - "clearing slot %d\n", idx); + if (printk_ratelimit()) + printk(KERN_INFO "init_dev: ldisc open failed, " + "clearing slot %d\n", idx); release_mem(tty, idx); goto end_init; } |