[PATCH] nvme-rdma: avoid stale device wrapper in remove_one

Cen Zhang zzzccc427 at gmail.com
Mon Jun 22 16:12:39 PDT 2026


Hi Nilay,

> Then, loop through the ctrl list and compare ctrl->device directly against that
> matching ndev. That would avoid dereferencing ctrl->device->dev while reusing
> the existing kref-based lifetime management for nvme_rdma_device, rather than
> introducing a separate cached ib_device pointer. At the end, we can drop the
> reference to ndev.

Thanks for your review and suggestion, that make sense to me.

I will rework this to avoid adding a cached ib_device field.

Best regards,
Cen Zhang



More information about the Linux-nvme mailing list