aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorHåkon Bugge <[email protected]>2017-09-06 18:35:51 +0200
committerDavid S. Miller <[email protected]>2017-09-07 20:07:13 -0700
commit126f760ca94dae77425695f9f9238b731de86e32 (patch)
tree9eb6678bb969d67a8f6cbab6110f0816bbde0798 /tools/perf/util/scripting-engines/trace-event-python.c
parenteef5a7cc2a571eb2176c8b9260d4ccfc9f6be127 (diff)
rds: Fix incorrect statistics counting
In rds_send_xmit() there is logic to batch the sends. However, if another thread has acquired the lock and has incremented the send_gen, it is considered a race and we yield. The code incrementing the s_send_lock_queue_raced statistics counter did not count this event correctly. This commit counts the race condition correctly. Changes from v1: - Removed check for *someone_on_xmit()* - Fixed incorrect indentation Signed-off-by: Håkon Bugge <[email protected]> Reviewed-by: Knut Omang <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions