Re: [PATCH for-next] RDMA/cm: Base cm_id destruction timeout on CMA values
From: Leon Romanovsky
Date: Mon Oct 27 2025 - 07:36:52 EST
On Tue, Oct 21, 2025 at 03:27:33PM +0200, Håkon Bugge wrote:
> When a GSI MAD packet is sent on the QP, it will potentially be
> retried CMA_MAX_CM_RETRIES times with a timeout value of:
>
> 4.096usec * 2 ^ CMA_CM_RESPONSE_TIMEOUT
>
> The above equates to ~64 seconds using the default CMA values.
>
> The cm_id_priv's refcount will be incremented for this period.
> Therefore, the timeout value waiting for a cm_id destruction must be
> based on the effective timeout of MAD packets. To provide additional
> leeway, we add 25% to this timeout and use that instead of the
> constant 10 seconds timeout, which may result in false negatives.
>
> Fixes: 96d9cbe2f2ff ("RDMA/cm: add timeout to cm_destroy_id wait")
I applied and removed this Fixes line. Most likely someone will complain
that this patch breaks his flow.
Thanks