]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Finish folding ->fqs_state into ->gp_state
authorPetr Mladek <pmladek@suse.com>
Wed, 9 Sep 2015 19:09:49 +0000 (12:09 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 6 Oct 2015 18:15:59 +0000 (11:15 -0700)
commit00dd272cadd59b654590497fefc09d29180588e2
tree6d5d0c2faad078f738bf6c1d7e0d63504101e720
parentb8ad8cbe3a3d6bd4771e6c4c70aa95a7eb8c5180
rcu: Finish folding ->fqs_state into ->gp_state

Commit commit 1272a8711ca0ae9f ("rcu: Move quiescent-state forcing
into kthread") started the process of folding the old ->fqs_state into
->gp_state, but did not complete it.  This situation does not cause
any malfunction, but can result in extremely confusing trace output.
This commit completes this task of eliminating ->fqs_state in favor
of ->gp_state.

The old ->fqs_state was also used to decide when to collect dyntick-idle
snapshots.  For this purpose, we add a boolean variable into the kthread,
which is set on the first call to rcu_gp_fqs() for a given grace period
and clear otherwise.

Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree.c
kernel/rcu/tree.h
kernel/rcu/tree_trace.c