diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-01-10 16:10:49 -0500 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-02-20 19:10:29 -0500 |
| commit | d62df57370a5215fbf1b088d2ee51fa5d69bd0c3 (patch) | |
| tree | eb82cd3110367c69a8ae4edf58febe1891c91e56 /kernel/rcu/tree.c | |
| parent | 01c495f72a3b5a210e5689deba1ef33c82e8aa30 (diff) | |
rcu: Remove obsolete force-quiescent-state statistics for debugfs
The debugfs interface displayed statistics on RCU-pending checks but
this interface has since been removed. This commit therefore removes the
no-longer-used rcu_state structure's ->n_force_qs_lh and ->n_force_qs_ngp
fields along with their updates. (Though the ->n_force_qs_ngp field
was actually not used at all, embarrassingly enough.)
If this information proves necessary in the future, the corresponding
event traces will be added.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.c')
| -rw-r--r-- | kernel/rcu/tree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 99d59be761d1..86fc087c7777 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
| @@ -2844,10 +2844,8 @@ static void force_quiescent_state(struct rcu_state *rsp) | |||
| 2844 | !raw_spin_trylock(&rnp->fqslock); | 2844 | !raw_spin_trylock(&rnp->fqslock); |
| 2845 | if (rnp_old != NULL) | 2845 | if (rnp_old != NULL) |
| 2846 | raw_spin_unlock(&rnp_old->fqslock); | 2846 | raw_spin_unlock(&rnp_old->fqslock); |
| 2847 | if (ret) { | 2847 | if (ret) |
| 2848 | rsp->n_force_qs_lh++; | ||
| 2849 | return; | 2848 | return; |
| 2850 | } | ||
| 2851 | rnp_old = rnp; | 2849 | rnp_old = rnp; |
| 2852 | } | 2850 | } |
| 2853 | /* rnp_old == rcu_get_root(rsp), rnp == NULL. */ | 2851 | /* rnp_old == rcu_get_root(rsp), rnp == NULL. */ |
| @@ -2856,7 +2854,6 @@ static void force_quiescent_state(struct rcu_state *rsp) | |||
| 2856 | raw_spin_lock_irqsave_rcu_node(rnp_old, flags); | 2854 | raw_spin_lock_irqsave_rcu_node(rnp_old, flags); |
| 2857 | raw_spin_unlock(&rnp_old->fqslock); | 2855 | raw_spin_unlock(&rnp_old->fqslock); |
| 2858 | if (READ_ONCE(rsp->gp_flags) & RCU_GP_FLAG_FQS) { | 2856 | if (READ_ONCE(rsp->gp_flags) & RCU_GP_FLAG_FQS) { |
| 2859 | rsp->n_force_qs_lh++; | ||
| 2860 | raw_spin_unlock_irqrestore_rcu_node(rnp_old, flags); | 2857 | raw_spin_unlock_irqrestore_rcu_node(rnp_old, flags); |
| 2861 | return; /* Someone beat us to it. */ | 2858 | return; /* Someone beat us to it. */ |
| 2862 | } | 2859 | } |
