diff options
author | Neeraj Upadhyay <neeraju@codeaurora.org> | 2019-03-29 14:27:08 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-05-28 19:02:57 +0300 |
commit | 3ae976a7e3e87438b8439a01aeb79d4866b1c444 (patch) | |
tree | 3909fa53f6a8ea05abfd45fdbeab0423ab62523f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | cd6d17b4a4646d4bf2568f3a4de13a5a13e2ed28 (diff) | |
download | linux-3ae976a7e3e87438b8439a01aeb79d4866b1c444.tar.xz |
rcu: Correctly unlock root node in rcu_check_gp_start_stall()
On systems whose rcu_node tree has only one node, the
rcu_check_gp_start_stall() function's values of rnp and rnp_root will
be identical. In this case, it clearly does not make sense to release
both rnp->lock and rnp_root->lock, but that is exactly what this function
does in the last early exit. This commit therefore unlocks only rnp->lock
when rnp and rnp_root are equal.
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions