Skip to content

Miscellaneous fixes for v5.7

Paul E. McKenney lkml rcu stable 1 version In review

Get series with b4
b4 am 20200214235536.GA13364@paulmck-ThinkPad-P72

Versions newest first

  1. v1 Latest30 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30nfs: Fix nfs_access_get_cached_rcu() sparse errorfs/nfs/dir.c+1 -10 replies
2/30rcu: Warn on for_each_leaf_node_cpu_mask() from non-leafkernel/rcu/rcu.h+4 -20 replies
3/30rcu: Fix exp_funnel_lock()/rcu_exp_wait_wake() dataracekernel/rcu/tree_exp.h+1 -10 replies
4/30rcu: Provide debug symbols and line numbers in KCSAN runskernel/rcu/Makefile+4 -00 replies
5/30rcu: Add WRITE_ONCE() to rcu_node ->qsmask updatekernel/rcu/tree.c+1 -10 replies
6/30rcu: Add WRITE_ONCE to rcu_node ->exp_seq_rq storekernel/rcu/tree_exp.h+1 -14 replies
7/30rcu: Add READ_ONCE() to rcu_node ->gp_seqkernel/rcu/tree.c+5 -40 replies
8/30rcu: Add WRITE_ONCE() to rcu_state ->gp_req_activitykernel/rcu/tree.c+2 -20 replies
9/30rcu: Add WRITE_ONCE() to rcu_node ->qsmaskinitnextkernel/rcu/tree.c+2 -20 replies
10/30locking/rtmutex: rcu: Add WRITE_ONCE() to rt_mutex ->ownerkernel/locking/rtmutex.c+1 -10 replies
11/30rcu: Add READ_ONCE() to rcu_segcblist ->tails[]kernel/rcu/rcu_segcblist.c+1 -10 replies
12/30rcu: *_ONCE() for grace-period progress indicatorskernel/rcu/tree.c kernel/rcu/tree_plugin.h kernel/rcu/tree_stall.h+23 -190 replies
13/30rcu: Fix typos in beginning commentskernel/rcu/srcutree.c kernel/rcu/tree.c+3 -30 replies
14/30rcu: Add READ_ONCE() to rcu_data ->gpwrapkernel/rcu/tree.c kernel/rcu/tree_stall.h+2 -20 replies
15/30rcu: Add *_ONCE() to rcu_data ->rcu_forced_tickkernel/rcu/tree.c+4 -30 replies
16/30rcu: Add *_ONCE() to rcu_node ->boost_kthread_statuskernel/rcu/tree_plugin.h+4 -40 replies
17/30timer: Use hlist_unhashed_lockless() in timer_pending()include/linux/timer.h kernel/time/timer.c+5 -40 replies
18/30rcu: Remove dead code from rcu_segcblist_insert_pend_cbs()kernel/rcu/rcu_segcblist.c+0 -20 replies
19/30rcu: Add WRITE_ONCE() to rcu_state ->gp_startkernel/rcu/tree_stall.h+1 -10 replies
20/30rcu: Fix rcu_barrier_callback() race conditionkernel/rcu/tree.c+10 -30 replies
21/30rculist: Add brackets around cond argument in __list_check_rcu macroinclude/linux/rculist.h+2 -20 replies
22/30rcu: Don't flag non-starting GPs before GP kthread is runningkernel/rcu/tree.c kernel/rcu/tree_stall.h+13 -97 replies
23/30rcu: Add missing annotation for rcu_nocb_bypass_lock()kernel/rcu/tree_plugin.h+1 -00 replies
24/30rcu/nocb: Add missing annotation for rcu_nocb_bypass_unlock()kernel/rcu/tree_plugin.h+1 -00 replies
25/30rcu: Optimize and protect atomic_cmpxchg() loopkernel/rcu/tree.c+5 -20 replies
26/30rcu: Tighten rcu_lockdep_assert_cblist_protected() checkkernel/rcu/tree_plugin.h+1 -20 replies
27/30rcu: Make nocb_gp_wait() double-check unexpected-callback warningkernel/rcu/tree_plugin.h+5 -10 replies
28/30rcu: Mark rcu_state.ncpus to detect concurrent writeskernel/rcu/tree.c+1 -00 replies
29/30rcu: Mark rcu_state.gp_seq to detect concurrent writeskernel/rcu/tree.c+10 -140 replies
30/30rcu: Make rcu_barrier() account for offline no-CBs CPUsinclude/trace/events/rcu.h kernel/rcu/tree.c+21 -125 replies

Reviews trailers per patch

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

PatchJoel Fernandes (Google)Qian CaiBoqun Feng
1/30
2/30
3/30
4/30
5/30
6/30
7/30
8/30
9/30
10/30
11/30
12/30
13/30
14/30
15/30
16/30
17/30
18/30
19/30
20/30
21/30A-b
22/30T-b T-b
23/30
24/30A-b
25/30
26/30
27/30
28/30
29/30
30/30

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH tip/core/rcu 0/30] Miscellaneous fixes for v5.7

Hello!

This series provides miscellaneous fixes.

1. Fix nfs_access_get_cached_rcu() sparse error, courtesy of
Madhuparna Bhowmik.

2. Warn on for_each_leaf_node_cpu_mask() from non-leaf rcu_node
structure.

3. Fix exp_funnel_lock()/rcu_exp_wait_wake() datarace.

4. Provide debug symbols and line numbers in KCSAN runs.

5. Add WRITE_ONCE() to rcu_node ->qsmask update.

6. Add WRITE_ONCE to rcu_node ->exp_seq_rq store.

7. Add READ_ONCE() to rcu_node ->gp_seq.

8. Add WRITE_ONCE() to rcu_state ->gp_req_activity.

9. Add WRITE_ONCE() to rcu_node ->qsmaskinitnext.

10. Add WRITE_ONCE() to rt_mutex ->owner.

11. Add READ_ONCE() to rcu_segcblist ->tails[].

12. *_ONCE() for grace-period progress indicators.

13. Fix typos in beginning comments, courtesy of SeongJae Park.

14. Add READ_ONCE() to rcu_data ->gpwrap.

15. Add *_ONCE() to rcu_data ->rcu_forced_tick.

16. Add *_ONCE() to rcu_node ->boost_kthread_status.

17. Use hlist_unhashed_lockless() in timer_pending(), courtesy of
Eric Dumazet.

18. Remove dead code from rcu_segcblist_insert_pend_cbs().

19. Add WRITE_ONCE() to rcu_state ->gp_start.

20. Fix rcu_barrier_callback() race condition.

21. Add brackets around cond argument in __list_check_rcu macro,
courtesy of Amol Grover.

22. Don't flag non-starting GPs before GP kthread is running.

23. Add missing annotation for rcu_nocb_bypass_lock(), courtesy
of Jules Irenge.

24. Add missing annotation for rcu_nocb_bypass_unlock(), courtesy
of Jules Irenge.

25. Optimize and protect atomic_cmpxchg() loop.

26. Tighten rcu_lockdep_assert_cblist_protected() check.

27. Make nocb_gp_wait() double-check unexpected-callback warning.

28. Mark rcu_state.ncpus to detect concurrent writes.

29. Mark rcu_state.gp_seq to detect concurrent writes.

30. Make rcu_barrier() account for offline no-CBs CPUs.

Thanx, Paul

------------------------------------------------------------------------

 fs/nfs/dir.c               |    2 
 include/linux/rculist.h    |    4 -
 include/linux/timer.h      |    2 
 include/trace/events/rcu.h |    1 
 kernel/locking/rtmutex.c   |    2 
 kernel/rcu/Makefile        |    4 +
 kernel/rcu/rcu.h           |    6 +-
 kernel/rcu/rcu_segcblist.c |    4 -
 kernel/rcu/srcutree.c      |    2 
 kernel/rcu/tree.c          |  134 +++++++++++++++++++++++++--------------------
 kernel/rcu/tree_exp.h      |    4 -
 kernel/rcu/tree_plugin.h   |   21 ++++---
 kernel/rcu/tree_stall.h    |   41 +++++++------
 kernel/time/timer.c        |    7 +-
 14 files changed, 135 insertions(+), 99 deletions(-)