Re: [PATCH v6 1/2] nvme: add per-queue sysfs directories

From: Saravanan D

Date: Wed Nov 04 2026 - 03:05:51 EST


On 10/30/26 7:46 AM, Nilay Shroff wrote:
>> + /* transports remove their queue directories before this point */
>> + if (ctrl->queues_kobj) {
>> + kobject_del(ctrl->queues_kobj);
>> + kobject_put(ctrl->queues_kobj);
>> + ctrl->queues_kobj = NULL;
>> + }
>
> Can we have a helper something like nvme_queue_dir_destroy()
> and then call it here?

Sure, in v7 I will add nvme_queue_dir_destroy() next to
nvme_queue_dir_create() in sysfs.c and call it from
nvme_uninit_ctrl().

Thanks,
Saravanan D.