aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2016-05-25 11:48:25 -0400
committerTejun Heo <[email protected]>2016-05-25 11:48:25 -0400
commit6710e594f71ccaad8101bc64321152af7cd9ea28 (patch)
tree526322970c44a03be3b46d27e45644fa188886fb /tools/perf/scripts/python/export-to-postgresql.py
parent4f996e234dad488e5d9ba0858bc1bae12eff82c3 (diff)
percpu: fix synchronization between synchronous map extension and chunk destruction
For non-atomic allocations, pcpu_alloc() can try to extend the area map synchronously after dropping pcpu_lock; however, the extension wasn't synchronized against chunk destruction and the chunk might get freed while extension is in progress. This patch fixes the bug by putting most of non-atomic allocations under pcpu_alloc_mutex to synchronize against pcpu_balance_work which is responsible for async chunk management including destruction. 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: 1a4d76076cda ("percpu: implement asynchronous chunk population")
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions