aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorNiels Dossche <[email protected]>2022-02-28 20:51:44 +0100
committerJason Gunthorpe <[email protected]>2022-04-04 14:45:51 -0300
commit22cbc6c2681a0a4fe76150270426e763d52353a4 (patch)
treebd907b1bdb5f54e7d414fb252d979a09a0ea95b9 /tools/perf/scripts/python/syscall-counts.py
parentf543a3e82bb275349961f8507ee195f34132ffb4 (diff)
IB/rdmavt: add missing locks in rvt_ruc_loopback
The documentation of the function rvt_error_qp says both r_lock and s_lock need to be held when calling that function. It also asserts using lockdep that both of those locks are held. rvt_error_qp is called form rvt_send_cq, which is called from rvt_qp_complete_swqe, which is called from rvt_send_complete, which is called from rvt_ruc_loopback in two places. Both of these places do not hold r_lock. Fix this by acquiring a spin_lock of r_lock in both of these places. The r_lock acquiring cannot be added in rvt_qp_complete_swqe because some of its other callers already have r_lock acquired. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niels Dossche <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions