diff options
author | Jason Gunthorpe <[email protected]> | 2020-09-02 11:11:15 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-09-17 09:09:23 -0300 |
commit | 2a7cec538169ada48a7810e77abff2ca99dbb098 (patch) | |
tree | eea9200ae810cb7dfcc9a54e7e1e6307dc844c35 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3cc30e8dfcb625ba4bd62a75aba475581c967639 (diff) |
RDMA/cma: Fix locking for the RDMA_CM_CONNECT state
It is currently a bit confusing, but the design is if the handler_mutex
is held, and the state is in RDMA_CM_CONNECT, then the state cannot leave
RDMA_CM_CONNECT without also serializing with the handler_mutex.
Make this clearer by adding a direct assertion, fixing the usage in
rdma_connect and generally using READ_ONCE to read the state value.
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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions