[PATCH] nvme: reject an administrative controller type on reinitialization

Yehyeong Lee yhlee at isslab.korea.ac.kr
Wed Nov 25 07:04:24 PST 2026


On Wed, Nov 25, 2026 at 06:16:08AM +0100, Christoph Hellwig wrote:
> 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.

v2 does both.  The check now sits in nvme_init_identify(), right before
ctrl->cntrltype is overwritten, and rejects any controller type change on
an already initialized controller rather than only the I/O-to-admin
override.  The commit message is cut down to the bug and the fix.

  https://lore.kernel.org/linux-nvme/20261125145902.254297-1-yhlee@isslab.korea.ac.kr/



More information about the Linux-nvme mailing list