Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4050914f authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

[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: default avatarAkinobu Mita <mita@miraclelinux.com>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1a036cdd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2065,6 +2065,7 @@ static int init_dev(struct tty_driver *driver, int idx,

	/* call the tty release_mem routine to clean out this slot */
release_mem_out:
	if (printk_ratelimit())
		printk(KERN_INFO "init_dev: ldisc open failed, "
				 "clearing slot %d\n", idx);
	release_mem(tty, idx);