Skip to content

RFC rcu: Introduce for_each_leaf_node_cpu()

Boqun Feng lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest5 patches 19 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rcu: Introduce for_each_leaf_node_cpu()kernel/rcu/tree.h+16 -04 replies
1/5rcu: Introduce for_each_leaf_node_cpu()kernel/rcu/tree.h+19 -01 reply
2/5rcu: Use for_each_leaf_node_cpu() in RCU stall checkingkernel/rcu/tree.c+10 -100 replies
3/5rcu: Use for_each_leaf_node_cpu() in ->expmask iterationkernel/rcu/tree_exp.h+4 -120 replies
4/5rcu: Use for_each_leaf_node_cpu() in force_qs_rnp()kernel/rcu/tree.c+5 -714 replies
5/5rcu: Use for_each_leaf_node_cpu() in online CPU iterationkernel/rcu/tree_plugin.h+4 -30 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchMark Rutland
1/5A-b A-b
1/5A-b A-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC v2 0/5] rcu: Introduce for_each_leaf_node_cpu()

v1:

https://marc.info/?l=linux-kernel&m=148127336205765

Changes since v1:

* Rename the primitive to for_each_leaf_node_cpu() for a shorter and
hopefully better name

* Fix a bug report by Colin King about bit shifting

* Drop iterator @bit based on suggestions from Mark Rutland

* Add a WARN_ON_ONCE() for !cpu_possible(cpu).

Based on -rcu's rcu/dev branch, commit 278c19fe5bc7 "rcu: Adjust FQS offline checks for exact online-CPU detection". Tested by 0day and rcutorture on a 12-cpu host, the results of rcutorture are all fine except:

TREE07 ------- 7655 grace periods (4.25278 per second)
WARNING: BAD SEQ 3901:3901 last:7652 version 61

    /home/boqun/linux/tools/testing/selftests/rcutorture/res/2016.12.14-13:17:10/TREE07/console.log

WARNING: Assertion failure in /home/boqun/linux/tools/testing/selftests/rcutorture/res/2016.12.14-13:17:10/TREE07/console.log
WARNING: Summary: Stalls: 4
CPU count limited from 16 to 12

The same WARNING could be reproduced without this patchset. Paul, given the sentence "CPU count limited from 16 to 12", is this just a problem for my setup? Maybe I should descrease the SMP numbers or increase rcutorture.stat_interval?

Regards,
Boqun