diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2022-04-08 19:21:50 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-12 03:06:43 +0300 |
commit | ab2756ea6b74987849b44ad0e33c3cfec159033b (patch) | |
tree | 166ae0bb6674eb0ea22272bdc591e36d5f8470fe /kernel/rcu/tree.c | |
parent | 07d95c34e8125a7bf833a94bc3c9d51992d92c45 (diff) | |
download | linux-ab2756ea6b74987849b44ad0e33c3cfec159033b.tar.xz |
rcu-tasks: Handle sparse cpu_possible_mask in rcu_tasks_invoke_cbs()
If the cpu_possible_mask is sparse (for example, if bits are set only for
CPUs 0, 4, 8, ...), then rcu_tasks_invoke_cbs() will access per-CPU data
for a CPU not in cpu_possible_mask. It makes these accesses while doing
a workqueue-based binary search for non-empty callback lists. Although
this search must pass through CPUs not represented in cpu_possible_mask,
it has no need to check the callback list for such CPUs.
This commit therefore changes the rcu_tasks_invoke_cbs() function's
binary search so as to only check callback lists for CPUs present in
cpu_possible_mask.
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.c')
0 files changed, 0 insertions, 0 deletions