RE: [PATCH v3] rcu: Add a minimum time for marking boot as completed

From: Zhuo, Qiuxu
Date: Mon Mar 06 2023 - 03:37:15 EST


> From: Joel Fernandes <joel@xxxxxxxxxxxxxxxxx>
> [...]
> > --- a/kernel/rcu/update.c
> > +++ b/kernel/rcu/update.c
> > @@ -289,7 +289,7 @@ void rcu_end_inkernel_boot(void)
> >
> > if (boot_ms < rcu_boot_end_delay) {
> > schedule_delayed_work(&rcu_boot_end_work,
> > - rcu_boot_end_delay - boot_ms);
> > + msecs_to_jiffies(rcu_boot_end_delay -
> > + boot_ms));
> > mutex_unlock(&rcu_boot_end_lock);
> > return;
> > }
> > urezki@pc638:~/data/raid0/coding/linux-rcu.git$
> > <snip>
> >
> > I think you need to apply above patch. I am not sure maybe Paul has
> > already mentioned about it. But just in case.
>
> Ah, the reason my testing did not catch it is because for HZ=1000, msecs and
> jiffies are the same.

So was my system :-)

CONFIG_HZ_1000=y
CONFIG_HZ=1000

-Qiuxu

> Great eyes and thank you Vlad, I’ll make the fix and repost it.
>
> - Joel
>
> >
> > --
> > Uladzislau Rezki