diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-10 10:22:35 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-13 11:08:01 -0300 |
commit | ad2d3ef46d2a88f2906d8d0cc6b912199ec3f1d6 (patch) | |
tree | e340c15843e1aa47281a4eebe0b2fa31a3781f62 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a1d8854aae4ee19df6161a276a99d3c9c2abc4f3 (diff) |
RDMA/mlx5: Lock access to ent->available_mrs/limit when doing queue_work
Accesses to these members needs to be locked. There is no reason not to
hold a spinlock while calling queue_work(), so move the tests into a
helper and always call it under lock.
The helper should be called when available_mrs is adjusted.
Link: https://lore.kernel.org/r/20200310082238.239865-10-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions