android_kernel_xiaomi_sm8350/drivers/infiniband/hw
Jack Morgenstein 42ab01c315 IB/mlx4: Fix MTT leakage in resize CQ
When resizing a CQ, MTTs associated with the old CQE buffer were not
freed.  As a result, if any app used resize CQ repeatedly, all MTTs
were eventually exhausted, which led to all memory registration
operations failing until the driver is reloaded.

Once the RESIZE_CQ command returns successfully from FW, FW no longer
accesses the old CQ buffer, so it is safe to deallocate the MTT
entries used by the old CQ buffer.

Finally, if the RESIZE_CQ command fails, the MTTs allocated for the
new CQEs buffer also need to be de-allocated.

This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1416>.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-12-01 10:09:37 -08:00
..
amso1100 IB: Drop code after return statement 2008-09-20 20:06:32 -07:00
cxgb3 RDMA/cxgb3: Fix deadlock in iw_cxgb3 (hang when configuring interface) 2008-11-12 10:16:47 -08:00
ehca IB/ehca: Remove reference to special QP in case of port activation failure 2008-11-11 15:44:22 -08:00
ipath IB/ipath: Fix RDMA write with immediate copy of last packet 2008-10-27 15:31:25 -07:00
mlx4 IB/mlx4: Fix MTT leakage in resize CQ 2008-12-01 10:09:37 -08:00
mthca IB/mthca: Use pci_request_regions() 2008-09-29 21:37:33 -07:00
nes RDMA/nes: Mitigate compatibility issue regarding PCIe write credits 2008-11-02 21:40:55 -08:00