diff options
author | Hou Tao <[email protected]> | 2023-10-20 21:31:56 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-10-20 10:12:54 -0700 |
commit | 394e6869f0185e89cb815db29bf819474df858ae (patch) | |
tree | b01d8ee6e2f3b518a0db7e12644a3fd7490c1e87 /tools/perf/scripts/python | |
parent | da1055b673f3baac2249571c9882ce767a0aa746 (diff) |
mm/percpu.c: don't acquire pcpu_lock for pcpu_chunk_addr_search()
There is no need to acquire pcpu_lock for pcpu_chunk_addr_search():
1) both pcpu_first_chunk & pcpu_reserved_chunk must have been
initialized before the invocation of free_percpu().
2) The dynamically-created chunk must be valid before the per-cpu
pointers allocated from it are freed.
So acquire pcpu_lock() after the invocation of pcpu_chunk_addr_search().
Acked-by: Dennis Zhou <[email protected]>
Signed-off-by: Hou Tao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions