[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0740de0d-4097-4beb-9e94-6b1b77d1c138@paulmck-laptop>
Date: Wed, 9 Jul 2025 16:02:01 -0700
From: "Paul E. McKenney" <paulmck@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, Kuniyuki Iwashima <kuniyu@...zon.com>,
Mateusz Guzik <mjguzik@...il.com>, Petr Mladek <pmladek@...e.com>,
Steven Rostedt <rostedt@...dmis.org>,
John Ogness <john.ogness@...utronix.de>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Jon Pan-Doh <pandoh@...gle.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Karolina Stolarek <karolina.stolarek@...cle.com>
Subject: Re: [PATCH v6 2/3] lib: Make the ratelimit test more reliable
On Wed, Jul 09, 2025 at 03:44:54PM -0700, Andrew Morton wrote:
> On Wed, 9 Jul 2025 11:03:34 -0700 "Paul E. McKenney" <paulmck@...nel.org> wrote:
>
> > The selftest fails most of the times when running in qemu with
> > a kernel configured with CONFIG_HZ = 250:
> >
> > > test_ratelimit_smoke: 1 callbacks suppressed
> > > # test_ratelimit_smoke: ASSERTION FAILED at lib/tests/test_ratelimit.c:28
> > > Expected ___ratelimit(&testrl, "test_ratelimit_smoke") == (false), but
> > > ___ratelimit(&testrl, "test_ratelimit_smoke") == 1 (0x1)
> > > (false) == 0 (0x0)
> >
> > Try to make the test slightly more reliable by calling the problematic
> > ratelimit in the middle of the interval.
> >
> > Signed-off-by: Petr Mladek <pmladek@...e.com>
> > Signed-off-by: Paul E. McKenney <paulmck@...nel.org>
> > ---
> > lib/tests/test_ratelimit.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
>
> Patch 1 adds test_ratelimit.c and patch 2 fixes it.
>
> Unconventional (and undesirable IMO). Would the world end if I folded
> 2 into 1?
Folding them together works for me, as long as Petr is properly credited.
Thanx, Paul
Powered by blists - more mailing lists