aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorYing Xue <[email protected]>2014-03-27 12:54:39 +0800
committerDavid S. Miller <[email protected]>2014-03-27 13:08:38 -0400
commitdde2026608fbf24e1687a2b62c4752022f429252 (patch)
tree829cd112db96c7c1e7fcacb9544f36703c06ac4a /tools/perf/scripts/python/bin/stackcollapse-report
parent2220646a53aa588798653232e26172ec36ab06cd (diff)
tipc: use node list lock to protect tipc_num_links variable
Without properly implicit or explicit read memory barrier, it's unsafe to read an atomic variable with atomic_read() from another thread which is different with the thread of changing the atomic variable with atomic_inc() or atomic_dec(). So a stale tipc_num_links may be got with atomic_read() in tipc_node_get_links(). If the tipc_num_links variable type is converted from atomic to unsigned integer and node list lock is used to protect it, the issue would be avoided. Signed-off-by: Ying Xue <[email protected]> Reviewed-by: Erik Hugne <[email protected]> Reviewed-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions