Skip to contentSkip to conversation

doc: Fix stale RCU_GP_WAIT_FQS value in stallwarn.rst

PATCH In review Yonghao Zhang 4 participants 4 messages Oct 14 – Oct 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: Fix stale RCU_GP_WAIT_FQS value in stallwarn.rst

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")
---
 Documentation/RCU/stallwarn.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/stallwarn.rst +1 -1
index b888e13c02a4..049694b9c681 100644
@@ -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
Signature · 1 line
2.34.1
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Yonghao Zhang

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.

Quoted 5 lines

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")

Thanks.

Quoted 17 lines
---
 Documentation/RCU/stallwarn.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/RCU/stallwarn.rst +1 -1
index b888e13c02a4..049694b9c681 100644
@@ -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
Signature · 1 line
~Randy
reviewer Reviewed-by
#2 lore raw
Quoted 11 lines · Yonghao Zhang
Quoted 9 lines

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.

Quoted 7 lines
Quoted 6 lines

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")

Thanks
Zqiang

Quoted 24 lines

Thanks.

Quoted 19 lines
---
 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

Signature · 1 line
~Randy
maintainer
#3 lore raw
Quoted 14 lines · Zqiang
Quoted 14 lines · Yonghao Zhang
Quoted 12 lines

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.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Fixes fea3f222d352 ("rcu: Record ->gp_state for both phases of grace-period initialization")

Applying for 7.5 with the tags, thank you!

Joel Fernandes

Quoted 28 lines

Thanks
Zqiang

Quoted 24 lines

Thanks.

Quoted 19 lines
---
 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

Signature · 1 line
~Randy