Re: [PATCH v10 2/2] IB/mlx5: Serialize force-enable state and preserve loopback accounting

Prathamesh Deshpande
2026-04-15T00:59:30Z

On Mon, Apr 13, 2026 at 05:41:55PM +0300, Leon Romanovsky wrote:
> On Sun, Apr 12, 2026 at 02:18:50AM +0100, Prathamesh Deshpande wrote:
> > force_enable is shared between MP bind/unbind flows and regular loopback
> > enable/disable flows. MP helpers updated force_enable without lb.mutex,
> > while regular paths read it under lb.mutex.
>
> Yes, this is intentional. During device probing, a device cannot be treated as
> both MP and regular at the same time.

Hi Leon,

Thanks for the clarification. I've addressed this in v11 by dropping the
MP-related locking changes to keep the intentional behavior unchanged.
The updated series has been submitted as a fresh thread.

Thanks,
Prathamesh