Linux block layer
 help / color / mirror / Atom feed
From: John Garry <john.g.garry@oracle.com>
To: Keith Busch <kbusch@kernel.org>
Cc: John Garry <john.garry@linux.dev>, Christoph Hellwig <hch@lst.de>,
	sagi@grimberg.me, axboe@fb.com, linux-nvme@lists.infradead.org,
	linux-block@vger.kernel.org
Subject: Re: [PATCH RFC] nvme-multipath: fix diskstats for partitions
Date: Tue, 11 Aug 2026 09:28:35 +0100	[thread overview]
Message-ID: <54355220-e8e7-4c6f-aa58-cd63bdf16771@oracle.com> (raw)
In-Reply-To: <anpzD5PaOn-_K5hn@kbusch-mbp>

On 11/08/2026 01:55, Keith Busch wrote:
> On Thu, Jul 30, 2026 at 01:52:00PM +0100, John Garry wrote:
>>
>> With that, /sys/class/block/ looks a bit different (with the per-path
>> partitions):
>>
>> #ls -l /sys/class/block/ | grep nvme0
>> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c0n1 ->
>> ../../devices/virtual/nvme-fabrics/ctl/nvme0/nvme0c0n1
>> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c0n1p1
>> -> ../../devices/virtual/nvme-fabrics/ctl/nvme0/nvme0c0n1/nvme0c0n1p1
>> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c1n1 ->
>> ../../devices/virtual/nvme-fabrics/ctl/nvme1/nvme0c1n1
>> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c1n1p1
>> -> ../../devices/virtual/nvme-fabrics/ctl/nvme1/nvme0c1n1/nvme0c1n1p1
>> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0n1 ->
>> ../../devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1
>> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0n1p1 ->
>> ../../devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1/nvme0n1p1
>>
>> Thoughts?
> 
> Yes, looks good to me, though I don't really know why partition scanning
> was skipped in the first place. I always thought the important part was
> the HIDDEN devices don't automatically enumerate in /dev/.

Yeah, there's more than just hiding the /dev/ entry.

 From 8ddcd653257c, GENHD_FL_SUPPRESS_PARTITION_INFO was set (from 
GENHD_FL_HIDDEN) so that those per-path partitions don't show up in 
/proc/partitions. From that, it was decided to just not scan the 
partitions. We don't want userspace needlessly notified of per-path 
partition scan events.

Another commit of interest is 3b5149ac5097, where 
GENHD_FL_SUPPRESS_PARTITION_INFO is replaced by GENHD_FL_HIDDEN.

      reply	other threads:[~2026-08-11  8:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260721114553.1657841-1-john.g.garry@oracle.com>
     [not found] ` <20260724050152.GA3680@lst.de>
2026-07-24  7:09   ` [PATCH RFC] nvme-multipath: fix diskstats for partitions John Garry
2026-07-24 12:45     ` Keith Busch
2026-07-24 15:29       ` John Garry
2026-07-24 15:37         ` Keith Busch
2026-07-24 16:56           ` John Garry
2026-07-30 12:52             ` John Garry
2026-08-11  0:55               ` Keith Busch
2026-08-11  8:28                 ` John Garry [this message]

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=54355220-e8e7-4c6f-aa58-cd63bdf16771@oracle.com \
    --to=john.g.garry@oracle.com \
    --cc=axboe@fb.com \
    --cc=hch@lst.de \
    --cc=john.garry@linux.dev \
    --cc=kbusch@kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /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