From: Christoph Hellwig <hch@lst.de>
To: Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Cc: hch@lst.de, kbusch@kernel.org, sagi@grimberg.me,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
kamaljit.singh@opensource.wdc.com
Subject: Re: [PATCH] nvme: reject an administrative controller type on reinitialization
Date: Wed, 25 Nov 2026 06:16:08 +0100 [thread overview]
Message-ID: <20261125051608.GA20096@lst.de> (raw)
In-Reply-To: <20261124133122.4167640-1-yhlee@isslab.korea.ac.kr>
On Tue, Nov 24, 2026 at 10:31:22PM +0900, Yehyeong Lee wrote:
> nvme_init_ctrl_finish() takes the controller type from the Identify
> Controller data, and for an administrative controller it overrides
> ctrl->queue_count to 1 so that only an admin queue is created. The
> Identify data is read again on every reconnect, so a controller that
> reported itself as an I/O controller on the first connect, and whose
> namespaces are in use, can report itself as an administrative controller
> on a reconnect.
Well, we'll have more issues if a reconnect changes the controller
type. So please check for that just after issuing the identify
controller and reject such a shape changing controller.
And please cut the commit message down to the basics.
next prev parent reply other threads:[~2026-11-25 5:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 13:31 [PATCH] nvme: reject an administrative controller type on reinitialization Yehyeong Lee
2026-11-25 5:16 ` Christoph Hellwig [this message]
2026-11-25 15:04 ` Yehyeong Lee
2026-11-25 14:59 ` [PATCH v2] nvme: reject a controller type change " Yehyeong Lee
2026-11-26 8:48 ` Christoph Hellwig
2026-11-26 9:52 ` Hannes Reinecke
2026-11-30 15:56 ` Keith Busch
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=20261125051608.GA20096@lst.de \
--to=hch@lst.de \
--cc=kamaljit.singh@opensource.wdc.com \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
--cc=yhlee@isslab.korea.ac.kr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.