]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Do not add user qps to flushlist
authorSelvin Xavier <selvin.xavier@broadcom.com>
Thu, 6 Aug 2020 04:45:48 +0000 (21:45 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 20 Aug 2020 11:31:41 +0000 (08:31 -0300)
commit06b827bb9dd66040880e56172ec8a5cc0b203fd4
tree2586bf0d59464995f105bb16d9a95d4fe1750ab7
parente189f67f4c77009e42614f57f3e42c1e26e6483b
RDMA/bnxt_re: Do not add user qps to flushlist

Driver shall add only the kernel qps to the flush list for clean up.
During async error events from the HW, driver is adding qps to this list
without checking if the qp is kernel qp or not.

Add a check to avoid user qp addition to the flush list.

Fixes: f174244a1019 ("RDMA/bnxt_re: Avoid Hard lockup during error CQE processing")
Fixes: 5d0f6c3be83d ("bnxt_re: fix the regression due to changes in alloc_pbl")
Link: https://lore.kernel.org/r/1596689148-4023-1-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c