Re: [PATCH 1/2] random: Omit double-printing ratelimit messages

From: Theodore Y. Ts'o
Date: Thu May 10 2018 - 15:40:50 EST


On Thu, May 10, 2018 at 07:37:40PM +0100, Dmitry Safonov wrote:
>
> Ok, then what's the purpose of those messages?
> : pr_notice("random: %d get_random_xx warning(s) missed "
> : "due to ratelimiting\n",
> : unseeded_warning.missed);
> : pr_notice("random: %d urandom warning(s) missed "
> : "due to ratelimiting\n",
> : urandom_warning.missed);
>
> I thought you want to print the summary after initializing random,
> not once per second?

Yes, and that's what is happening today. The "output lines suppressed
due to ratelimiting" message is only printed out by printk_ratelimit()
function, which we are *not* using.

So I'm not sure what you are unhappy about? What are you trying to fix?

>From my testing, it is *NOT* double-printing ratelimit messages today.
Are you seeing something that I am not?

- Ted