Re: [PATCH net-next v11 3/4] net: mana: support concurrent HWC requests

From: Wei Hu

Date: Mon Nov 23 2026 - 09:55:54 EST


On Tue, Nov 17, 2026, Leon Romanovsky wrote:
> Unfortunately, the entire series was written using AI tools, making it
> difficult to provide meaningful feedback based on the commit messages.

I rewrote the v12 commit messages to explain what goes wrong and why
each change is needed.

> However, in RDMA, object destruction should not fail and we shouldn't
> leave pinned memory for the user space process which already exited.

Agreed. ib_free_cq() frees the CQ even if destroy returns an error. I
removed the CQ and QP early returns in v12. Teardown no longer relies
on an exiting process retrying.

When a posted HWC command reaches its normal response timeout, the PF
guarantees that DMA through the old MR has stopped and cannot restart.
The driver can then unpin the pages without a destroy reply.

Thanks,
Wei