summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-05-25 11:48:25 -0400
committerTejun Heo <tj@kernel.org>2016-05-25 11:48:25 -0400
commit6710e594f71ccaad8101bc64321152af7cd9ea28 (patch)
tree526322970c44a03be3b46d27e45644fa188886fb /tools/perf/scripts/python/bin/stackcollapse-record
parent4f996e234dad488e5d9ba0858bc1bae12eff82c3 (diff)
downloadkernel-6710e594f71ccaad8101bc64321152af7cd9ea28.tar.gz
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 <tj@kernel.org> Reported-and-tested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com> Reported-by: Vlastimil Babka <vbabka@suse.cz> Reported-by: Sasha Levin <sasha.levin@oracle.com> Cc: stable@vger.kernel.org # v3.18+ Fixes: 1a4d76076cda ("percpu: implement asynchronous chunk population")
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
SUNRPC: Switch one_sock_name() to use snprintf()Chuck Lever 2009-04-28SUNRPC: pass buffer size to svc_sock_names()Chuck Lever 2009-04-28SUNRPC: pass buffer size to svc_addsock()Chuck Lever 2009-04-28SUNRPC: Fix error return value of svc_addr_len()Chuck Lever 2009-04-06Merge branch 'for-2.6.30' of git://linux-nfs.org/~bfields/linuxLinus Torvalds 2009-04-01SUNRPC: Ensure IPV6_V6ONLY is set on the socket before binding to a portTrond Myklebust 2009-03-28SUNRPC: Set IPV6ONLY flag on PF_INET6 RPC listener socketsChuck Lever 2009-03-28SUNRPC: svc_setup_socket() gets protocol family from socketChuck Lever 2009-03-28SUNRPC: Pass a family argument to svc_register()Chuck Lever 2009-03-18svcrpc: take advantage of tcp autotuningOlga Kornievskaia 2009-01-07SUNRPC: The sunrpc server code should not be used by out-of-tree modulesTrond Myklebust 2009-01-07svc: Move kfree of deferral record to common codeTom Tucker 2009-01-06SUNRPC: Ensure the server closes sockets in a timely fashionTrond Myklebust 2008-12-15Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller 2008-11-24Add a reference to sunrpc in svc_addsockTom Tucker 2008-10-31net: replace NIPQUAD() in net/*/Harvey Harrison