Re: [PATCH] nvme-rdma: avoid stale device wrapper in remove_one
From: Cen Zhang
Date: Mon Jun 22 2026 - 19:13:00 EST
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