mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Saravanan D <saravanand@crusoe.ai>
To: Nilay Shroff <nilay@linux.ibm.com>
Cc: Saravanan D <saravanand@crusoe.ai>,
	linux-nvme@lists.infradead.org, kbusch@kernel.org, hch@lst.de,
	sagi@grimberg.me, axboe@kernel.dk, dwagner@suse.de,
	sgogte@purestorage.com, hare@kernel.org, hare@suse.de,
	linux-kernel@vger.kernel.org, iyamahata@crusoe.ai,
	kiyer@crusoe.ai, ganbalagane@crusoe.ai, sjpark@crusoe.ai,
	bchen@crusoe.ai
Subject: Re: [PATCH v6 2/2] nvme-tcp: allow setting per-queue io_cpu through sysfs
Date: Wed,  4 Nov 2026 00:00:26 -0800	[thread overview]
Message-ID: <20261104080035.95142-2-saravanand@crusoe.ai> (raw)
In-Reply-To: <4b3a601f-3035-4883-ad2d-c6a20d2891ef@linux.ibm.com>

On 10/30/26 7:45 AM, Nilay Shroff wrote:
> I see here nvme_queue_dir_create() is invoked on every reconnect. Although
> it is guarded by ctrl->queues_kobj, the directory is controller-lifetime
> state, so it would be cleaner to create it once from nvme_add_ctrl().
>
> Moreover, this also makes the ownership asymmetric: nvme-tcp creates the
> queues directory, but nvme-core removes it from nvme_uninit_ctrl(). Could
> nvme-core manage both creation and destruction instead?
>
> One way to do that is to add queue_attr_groups to struct nvme_ctrl_ops.

Thanks for this suggestion. In v7 I will add queue_attr_groups to struct
nvme_ctrl_ops. For a transport that sets it, nvme_add_ctrl() will
create the queues directory after cdev_device_add(), and
nvme_uninit_ctrl() will remove it. With nvme-core owning the directory,
nvme_queue_dir_create() no longer needs to be exported, and
nvme_add_queue_info() will take the groups from ctrl->ops, so nvme-tcp
only adds and removes the per queue directories.

Thanks,
Saravanan D.

  reply	other threads:[~2026-11-04  8:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 23:04 [PATCH v6 0/2] " Saravanan D
2026-10-23 23:04 ` [PATCH v6 1/2] nvme: add per-queue sysfs directories Saravanan D
2026-10-30 14:46   ` Nilay Shroff
2026-11-04  8:00     ` Saravanan D
2026-10-23 23:04 ` [PATCH v6 2/2] nvme-tcp: allow setting per-queue io_cpu through sysfs Saravanan D
2026-10-30 14:45   ` Nilay Shroff
2026-11-04  8:00     ` Saravanan D [this message]
2026-10-30  0:23 ` [PATCH v6 0/2] " Saravanan D

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261104080035.95142-2-saravanand@crusoe.ai \
    --to=saravanand@crusoe.ai \
    --cc=axboe@kernel.dk \
    --cc=bchen@crusoe.ai \
    --cc=dwagner@suse.de \
    --cc=ganbalagane@crusoe.ai \
    --cc=hare@kernel.org \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=iyamahata@crusoe.ai \
    --cc=kbusch@kernel.org \
    --cc=kiyer@crusoe.ai \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=nilay@linux.ibm.com \
    --cc=sagi@grimberg.me \
    --cc=sgogte@purestorage.com \
    --cc=sjpark@crusoe.ai \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®