summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMark Bloch <markb@mellanox.com>2018-03-27 15:51:05 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-03-27 15:07:21 -0600
commite945130b52bea65d15f9bdf54949d4cb7a88db7f (patch)
treef6ec3278b190b01473e4aedee559bccc2ef5c4bc /tools/perf/scripts/python/export-to-postgresql.py
parentc8d75a980fab886a9c716567e6b47cc414ad84ee (diff)
IB/core: Protect against concurrent access to hardware stats
Currently access to hardware stats buffer isn't protected, this can result in multiple writes and reads at the same time to the same memory location. This can lead to providing an incorrect value to the user. Add a mutex to protect against it. Fixes: b40f4757daa1 ("IB/core: Make device counter infrastructure dynamic") Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions