Re: [PATCH rdma] RDMA/mlx5: Cancel software CQ notifications before teardown

From: Leon Romanovsky

Date: Mon Oct 12 2026 - 03:54:13 EST



On Thu, 08 Oct 2026 15:12:02 +0100, Prathamesh Deshpande wrote:
> GSI completions queue notify_work to invoke the CQ completion handler.
> CQ destruction drains hardware events and core polling, but does not
> cancel this software notifier. Queued or running work can therefore
> access a freed CQ, or restart polling after ib_free_cq() has drained it.
>
> Cancel notify_work in the pre-destroy callback, before core polling is
> stopped and CQ memory is released. Skip user CQs, which do not initialize
> this work item.
>
> [...]

Applied, thanks!

[1/1] RDMA/mlx5: Cancel software CQ notifications before teardown
https://git.kernel.org/rdma/rdma/c/a0ab2bb269e7fd

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>