]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/bnxt_re: Fix budget handling of notification queue
authorKashyap Desai <kashyap.desai@broadcom.com>
Mon, 24 Mar 2025 04:09:35 +0000 (09:39 +0530)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 17:53:02 +0000 (14:53 -0300)
commit6b395d31146a3fae775823ea8570a37b922f6685
tree105c5d3792dbc17691a1cdf224ec14a84fb124af
parent0af2f6be1b4281385b618cb86ad946eded089ac8
RDMA/bnxt_re: Fix budget handling of notification queue

The cited commit in Fixes tag introduced a bug which can cause hang
of completion queue processing because of notification queue budget
goes to zero.

Found while doing nfs over rdma mount and umount.
Below message is noticed because of the existing bug.

kernel: cm_destroy_id_wait_timeout: cm_id=00000000ff6c6cc6 timed out. state 11 -> 0, refcnt=1

Fix to handle this issue -
Driver will not change nq->budget upon create and destroy of cq and srq
rdma resources.

Fixes: cb97b377a135 ("RDMA/bnxt_re: Refurbish CQ to NQ hash calculation")
Link: https://patch.msgid.link/r/20250324040935.90182-1-kalesh-anakkur.purayil@broadcom.com
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c