aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2016-05-25 15:48:25 +0000
committerTejun Heo <[email protected]>2016-05-25 15:48:25 +0000
commit4f996e234dad488e5d9ba0858bc1bae12eff82c3 (patch)
tree882a932c3883968a9276598fd536ab43413083fd /tools/perf/scripts/python/compaction-times.py
parentMerge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm... (diff)
downloadkernel-4f996e234dad488e5d9ba0858bc1bae12eff82c3.tar.gz
kernel-4f996e234dad488e5d9ba0858bc1bae12eff82c3.zip
percpu: fix synchronization between chunk->map_extend_work and chunk destruction
Atomic allocations can trigger async map extensions which is serviced by chunk->map_extend_work. pcpu_balance_work which is responsible for destroying idle chunks wasn't synchronizing properly against chunk->map_extend_work and may end up freeing the chunk while the work item is still in flight. This patch fixes the bug by rolling async map extension operations into pcpu_balance_work. Signed-off-by: Tejun Heo <[email protected]> Reported-and-tested-by: Alexei Starovoitov <[email protected]> Reported-by: Vlastimil Babka <[email protected]> Reported-by: Sasha Levin <[email protected]> Cc: [email protected] # v3.18+ Fixes: 9c824b6a172c ("percpu: make sure chunk->map array has available space")
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions