[PATCH RFC 2/2] nvmet-rdma: use a separate lockdep class for the listening cm_id
Jason Gunthorpe
jgg at ziepe.ca
Mon Nov 9 16:32:43 PST 2026
On Sun, Nov 08, 2026 at 09:01:54PM +0900, Shin'ichiro Kawasaki wrote:
> @@ -1914,6 +1914,8 @@ static int nvmet_rdma_enable_port(struct nvmet_rdma_port *port)
> return PTR_ERR(cm_id);
> }
>
> + rdma_reclassify_id_for_listen(cm_id);
> +
It seems like a flag or new function for the create would make more
sense, and if this is the right fix then all the callers with the
pattern of rdma_create_id() .. rdma_listen() should be fixed too?
I suppose we cannot change the lock class in rdma_listen ?
Jason
More information about the Linux-nvme
mailing list