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

From: Yehyeong Lee

Date: Wed Nov 25 2026 - 10:04:38 EST


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@xxxxxxxxxxxxxxxxxx/