Skip to content

rcu: suppress RCU lockdep early-boot warnings and fixes

Paul E. McKenney lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4rcu: use wrapper function instead of exporting tasklist_lockinclude/linux/cred.h include/linux/sched.h kernel/exit.c +2 more+17 -41 reply
2/4rcu: suppress RCU lockdep warnings during early bootinclude/linux/rcupdate.h lib/locking-selftest.c+31 -95 replies
3/4rcu: revert 1883c79a: early boot now handled by lockdep-RCUinclude/linux/cgroup.h+0 -11 reply
4/4rcu: add control variables to lockdep_rcu_dereference() diagnosticskernel/lockdep.c+1 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH tip/core/rcu 0/4] rcu: suppress RCU lockdep early-boot warnings and fixes

Hello!

This patch series suppresses early-boot RCU-lockdep warnings and fixes a couple of other RCU lockdep issues:

1. Use a wrapper function to query lockdep about tasklist_lock
instead of (re-)exporting tasklist_lock to modules.

2. Suppress early-boot RCU-lockdep warnings.

3. Revert an earlier lockdep-RCU patch that manually checked for
early boot.

4. Add a couple of variables to the lockdep_rcu_dereference()
output.

Testing identified a couple of lockdep splats that I thought were due to early boot issues, but which turned out to be not -quite- that early. These will be dealt with by a pair of later patches.

Thanx, Paul

 include/linux/cgroup.h   |    2 --
 include/linux/cred.h     |    2 +-
 include/linux/rcupdate.h |   35 ++++++++++++++++++++++++++---------
 include/linux/sched.h    |    4 ++++
 kernel/exit.c            |    2 +-
 kernel/fork.c            |    9 ++++++++-
 kernel/lockdep.c         |    2 +-
 kernel/pid.c             |    5 +++--
 lib/locking-selftest.c   |    6 +++++-
 9 files changed, 49 insertions(+), 18 deletions(-)