aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
author[email protected] <[email protected]>2016-04-14 10:43:27 -0700
committerDavid S. Miller <[email protected]>2016-04-16 19:01:05 -0400
commite47db94e10447fc467777a40302f2b393e9af2fa (patch)
tree4c7df86e01d04d5ba6ec19a764807ca6b5a92261 /tools/perf/scripts/python
parenta7c556546f610a331c22cb7edd9d1afe63f0cd52 (diff)
RDS: Fix the atomicity for congestion map update
Two different threads with different rds sockets may be in rds_recv_rcvbuf_delta() via receive path. If their ports both map to the same word in the congestion map, then using non-atomic ops to update it could cause the map to be incorrect. Lets use atomics to avoid such an issue. Full credit to Wengang <[email protected]> for finding the issue, analysing it and also pointing out to offending code with spin lock based fix. Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Wengang Wang <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions