On Fri, Oct 16, 2026 at 11:54:39PM +0000, Zqiang wrote:
> >
> > On 10/13/26 11:31 PM, Yonghao Zhang wrote:
> >
> > >
> > > The sample "kthread starved" splat in stallwarn.rst shows
> > > RCU_GP_WAIT_FQS(3), which was correct when the example was captured,
> > > but has been stale since commit fea3f222d352 ("rcu: Record ->gp_state
> > > for both phases of grace-period initialization") inserted
> > > RCU_GP_ONOFF (3) and RCU_GP_INIT (4) ahead of it, shifting
> > > RCU_GP_WAIT_FQS from 3 to 5.
> > >
> > > Update the sample output to show (5), matching the current tree.h
> > > values and the later "kthread timer wakeup" example in the same file.
> > >
> > > Fixes: fea3f222d352 ("rcu: Record ->gp_state for both phases of
> > > grace-period initialization")
> > > Signed-off-by: Yonghao Zhang <[email protected]>
> > >
> > Acked-by: Randy Dunlap <[email protected]>
>
> Reviewed-by: Zqiang <[email protected]>
Applying for 7.5 with the tags, thank you!
Joel Fernandes
>
> Thanks
> Zqiang
>
> > Thanks.
> >
> > >
> > > ---
> > > Documentation/RCU/stallwarn.rst | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/Documentation/RCU/stallwarn.rst
> > > b/Documentation/RCU/stallwarn.rst
> > > index b888e13c02a4..049694b9c681 100644
> > > --- a/Documentation/RCU/stallwarn.rst
> > > +++ b/Documentation/RCU/stallwarn.rst
> > > @@ -379,7 +379,7 @@ If the relevant grace-period kthread has been unable
> > > to run prior to
> > > the stall warning, as was the case in the "All QSes seen" line above,
> > > the following additional line is printed::
> > >
> > > - rcu_sched kthread starved for 23807 jiffies! g7075 f0x0
> > > RCU_GP_WAIT_FQS(3) ->state=0x1 ->cpu=5
> > > + rcu_sched kthread starved for 23807 jiffies! g7075 f0x0
> > > RCU_GP_WAIT_FQS(5) ->state=0x1 ->cpu=5
> > > Unless rcu_sched kthread gets sufficient CPU time, OOM is now expected
> > > behavior.
> > >
> > > Starving the grace-period kthreads of CPU time can of course result
> > >
> > --
> > ~Randy
> >