[PATCH v2 1/1] nvme-rdma: Introduce nvme_rdma_destroy_qp
Max Gurtovoy
maxg at mellanox.com
Sun Nov 5 08:35:33 PST 2017
On 11/5/2017 4:00 PM, Sagi Grimberg wrote:
>
>> +static void nvme_rdma_destroy_qp(struct nvme_rdma_queue *queue)
>> +{
>> + rdma_destroy_qp(queue->cm_id);
>> + queue->qp = NULL;
>
> Why is setting the qp to NULL needed here?
>
> I'd rather not do this if we don't have a good reason reason for it.
Currently it's there for symmetry.
Do you prefer to point to freed memory ? I can resend it if needed.
More information about the Linux-nvme
mailing list