diff options
| author | Jason Gunthorpe <[email protected]> | 2020-08-18 15:05:13 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-08-27 08:38:13 -0300 |
| commit | ca2968c1efcbeb547906cf6211874ec881beafec (patch) | |
| tree | f5d7b5f93d3d2270117006ddb69d56e79a7258a2 /tools/perf/scripts/python/flamegraph.py | |
| parent | 7c4b1ab9f16732fb921b3f11cd127fa65f26ad5c (diff) | |
RDMA/ucma: Fix refcount 0 incr in ucma_get_ctx()
Both ucma_destroy_id() and ucma_close_id() (triggered from an event via a
wq) can drive the refcount to zero. ucma_get_ctx() was wrongly assuming
that the refcount can only go to zero from ucma_destroy_id() which also
removes it from the xarray.
Use refcount_inc_not_zero() instead.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions