Re: [PATCH rdma-rc 2/2] RDMA/ucma: Lock the handler in ucma_set_ib_path()

Jason Gunthorpe <[email protected]>
Newsgroups org.kernel.vger.linux-rdma
Message-ID <[email protected]>
On Mon, Jul 27, 2026 at 10:08:36AM +0200, Norbert Szetei wrote:

> diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
> index ba4dfa7f12de..2347c0c59b90 100644
> --- a/drivers/infiniband/core/ucma.c
> +++ b/drivers/infiniband/core/ucma.c
> @@ -1404,7 +1404,10 @@ static int ucma_set_ib_path(struct ucma_context *ctx,
>  
>  	memset(&event, 0, sizeof event);
>  	event.event = RDMA_CM_EVENT_ROUTE_RESOLVED;
> -	return ucma_event_handler(ctx->cm_id, &event);
> +	rdma_lock_handler(ctx->cm_id);
> +	ret = ucma_event_handler(ctx->cm_id, &event);
> +	rdma_unlock_handler(ctx->cm_id);
> +	return ret;
>  }

Applied, something went off with patchworks and I didn't notice it

Thanks,
Jason
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.