Skip to content

rcu: add lockdep checking, doc update, dyntick GP acceleration

Paul E. McKenney lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13rcu: introduce lockdep-based checking to RCU read-side primitivesinclude/linux/rcupdate.h include/linux/srcu.h kernel/rcupdate.c +4 more+267 -310 replies
2/13rcu: add lockdep-enabled variants of rcu_dereference()include/linux/rcupdate.h include/linux/srcu.h+42 -71 reply
3/13rcu: integrate rcu_dereference_check() message into lockdepinclude/linux/lockdep.h include/linux/rcupdate.h kernel/lockdep.c+24 -20 replies
4/13rcu: disable lockdep checking in RCU list-traversal primitivesinclude/linux/rculist.h include/linux/rculist_nulls.h+9 -90 replies
5/13net: add checking to rcu_dereference() primitivesinclude/linux/rtnetlink.h include/net/addrconf.h net/core/dev.c +6 more+35 -215 replies
6/13sched: use lockdep-based checking on rcu_dereference()include/linux/cgroup.h include/linux/cred.h init/main.c +6 more+43 -122 replies
7/13vfs: apply lockdep-based checking to rcu_dereference() usesfs/file.c fs/proc/array.c fs/proc/base.c +1 more+14 -42 replies
8/13radix-tree: disable RCU lockdep checking in radix treelib/radix-tree.c+12 -120 replies
9/13idr: apply lockdep-based diagnostics to rcu_dereference() useslib/idr.c+4 -40 replies
10/13security: apply lockdep-based checking to rcu_dereference() usessecurity/keys/gc.c security/keys/keyring.c+5 -20 replies
11/13rcu: documentation update for CONFIG_PROVE_RCUDocumentation/RCU/00-INDEX Documentation/RCU/checklist.txt Documentation/RCU/lockdep.txt +1 more+97 -190 replies
12/13rcu: fix citation of Mathieu's dissertationDocumentation/RCU/RTFP.txt+4 -10 replies
13/13rcu: accelerate grace period if last non-dynticked CPUinclude/linux/cpumask.h init/Kconfig kernel/rcutree.c +1 more+101 -30 replies

Reviews trailers per patch

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

PatchEric DumazetDavid S. Miller
1/13
2/13A-b
3/13
4/13
5/13A-b A-b
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

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

Read the v1 thread

Cover letter [PATCH tip/core/rcu 0/13] rcu: add lockdep checking, doc update, dyntick GP acceleration

Hello!

The first 11 patches extend lockdep to check for proper protection of rcu_dereference(), described in http://lwn.net/Articles/371986/,
and apply these lockdep extensions in a number of areas in the kernel. There are likely more such changes required, as I am limited to those located by the systems I have access to.

The twelfth patch is a documentation update, and the last patch accelerates grace periods when the current CPU is the last non-dyntick-idle CPU in the system, which is important for some multi-core battery-powered devices.

 b/Documentation/RCU/00-INDEX      |    2 
 b/Documentation/RCU/RTFP.txt      |    6 +
 b/Documentation/RCU/checklist.txt |   34 ++++++----
 b/Documentation/RCU/lockdep.txt   |   67 ++++++++++++++++++++
 b/Documentation/RCU/whatisRCU.txt |   14 ++--
 b/fs/file.c                       |    2 
 b/fs/proc/array.c                 |    2 
 b/fs/proc/base.c                  |    6 +
 b/include/linux/cgroup.h          |    5 +
 b/include/linux/cpumask.h         |   14 ++++
 b/include/linux/cred.h            |    2 
 b/include/linux/fdtable.h         |    9 +-
 b/include/linux/lockdep.h         |    4 +
 b/include/linux/rculist.h         |   14 ++--
 b/include/linux/rculist_nulls.h   |    5 -
 b/include/linux/rcupdate.h        |  126 ++++++++++++++++++++++++++++++++++----
 b/include/linux/rtnetlink.h       |    3 
 b/include/linux/srcu.h            |   87 +++++++++++++++++++++++++-
 b/include/net/addrconf.h          |    4 -
 b/init/Kconfig                    |   16 ++++
 b/init/main.c                     |    2 
 b/kernel/cgroup.c                 |   12 +++
 b/kernel/exit.c                   |   14 +++-
 b/kernel/fork.c                   |    1 
 b/kernel/lockdep.c                |   19 +++++
 b/kernel/notifier.c               |    6 -
 b/kernel/pid.c                    |    2 
 b/kernel/rcupdate.c               |   10 +++
 b/kernel/rcutorture.c             |   12 +++
 b/kernel/rcutree.c                |    5 -
 b/kernel/rcutree_plugin.h         |   70 ++++++++++++++++++++-
 b/kernel/sched.c                  |   12 ++-
 b/kernel/srcu.c                   |   50 +++++++++------
 b/lib/Kconfig.debug               |   12 +++
 b/lib/debug_locks.c               |    2 
 b/lib/idr.c                       |    9 +-
 b/lib/radix-tree.c                |   25 +++----
 b/net/core/dev.c                  |    2 
 b/net/core/filter.c               |    6 -
 b/net/core/rtnetlink.c            |    8 ++
 b/net/core/sock.c                 |    3 
 b/net/decnet/dn_route.c           |   14 ++--
 b/net/ipv4/route.c                |   14 ++--
 b/net/packet/af_packet.c          |    3 
 b/security/keys/gc.c              |    3 
 b/security/keys/keyring.c         |    5 -
 include/linux/rcupdate.h          |   45 ++++++++++---
 include/linux/srcu.h              |    9 ++
 48 files changed, 657 insertions(+), 140 deletions(-)