[PATCH v6 1/2] nvme: add per-queue sysfs directories
Saravanan D
saravanand at crusoe.ai
Wed Nov 4 00:00:25 PST 2026
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.
More information about the Linux-nvme
mailing list