projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e05720b
)
rcu: Move rcu_try_advance_all_cbs() to ->gp_seq
author
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Sat, 28 Apr 2018 02:56:16 +0000
(19:56 -0700)
committer
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 21:27:51 +0000
(14:27 -0700)
This commit makes rcu_try_advance_all_cbs() use ->gp_seq, with the
exception of tracing, which will be converted later.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_plugin.h
patch
|
blob
|
history
diff --git
a/kernel/rcu/tree_plugin.h
b/kernel/rcu/tree_plugin.h
index
e387ea7
..
d893899
100644
(file)
--- a/
kernel/rcu/tree_plugin.h
+++ b/
kernel/rcu/tree_plugin.h
@@
-1467,7
+1467,8
@@
static bool __maybe_unused rcu_try_advance_all_cbs(void)
* completed since we last checked and there are
* callbacks not yet ready to invoke.
*/
- if ((rdp->completed != rnp->completed ||
+ if ((rcu_seq_completed_gp(rdp->gp_seq,
+ rcu_seq_current(&rnp->gp_seq)) ||
unlikely(READ_ONCE(rdp->gpwrap))) &&
rcu_segcblist_pend_cbs(&rdp->cblist))
note_gp_changes(rsp, rdp);