Re: [PATCH] nvme-sysfs: display max_hw_sectors_kb without requiring namespaces

From: Sagi Grimberg
Date: Wed Oct 23 2024 - 05:47:28 EST





On 22/10/2024 18:51, Keith Busch wrote:
On Tue, Oct 22, 2024 at 06:35:11PM +0300, Sagi Grimberg wrote:
On 22/10/2024 17:53, Keith Busch wrote:
On Thu, Oct 17, 2024 at 02:32:18PM -0700, Abhishek Bapat wrote:

The request_queue is owned by the block layer, so that seems like an
okay place to export it, but attached to some other device's sysfs
directory instead of a gendisk.

I'm just suggesting this because it doesn't sound like this is an nvme
specific problem.
Won't it be confusing to find queue/ directory in controller nvmeX sysfs
entry?
It's the attributes of the request queue associated with that
controller, so I think a queue/ directory under it makes sense. That's
how it looks for gendisks, so why not for disk-less queues?

Many queue attributes only make sense for gendisks, though, so maybe
need to tweak visibility if we decide to do it like this.

It'd be good to name it "admin_queue" to clarify a bit (although its still
confusing).