summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2020-09-02 11:11:15 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-09-17 15:09:23 +0300
commit2a7cec538169ada48a7810e77abff2ca99dbb098 (patch)
treeeea9200ae810cb7dfcc9a54e7e1e6307dc844c35 /tools/perf/scripts/python/syscall-counts.py
parent3cc30e8dfcb625ba4bd62a75aba475581c967639 (diff)
downloadlinux-2a7cec538169ada48a7810e77abff2ca99dbb098.tar.xz
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/20200902081122.745412-2-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions