diff options
author | Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com> | 2021-10-13 10:18:52 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-10-13 13:33:22 -0300 |
commit | 13bac861952a78664907a0f927d3e874e9a59034 (patch) | |
tree | 81a785ac857883315c21f69a87fca1b1761314a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d39bf40e55e666b5905fdbd46a0dced030ce87be (diff) |
IB/hfi1: Fix abba locking issue with sc_disable()
sc_disable() after having disabled the send context wakes up any waiters
by calling hfi1_qp_wakeup() while holding the waitlock for the sc.
This is contrary to the model for all other calls to hfi1_qp_wakeup()
where the waitlock is dropped and a local is used to drive calls to
hfi1_qp_wakeup().
Fix by moving the sc->piowait into a local list and driving the wakeup
calls from the list.
Fixes: 099a884ba4c0 ("IB/hfi1: Handle wakeup of orphaned QPs for pio")
Link: https://lore.kernel.org/r/20211013141852.128104.2682.stgit@awfm-01.cornelisnetworks.com
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions