[PATCH v2] nvmet: force reconnect when number of queue changes
Daniel Wagner
dwagner at suse.de
Tue Sep 27 08:01:04 PDT 2022
On Tue, Sep 27, 2022 at 04:31:57PM +0200, Daniel Wagner wrote:
> In order to be able to test queue number changes we need to make sure
> that the host reconnects.
>
> The initial idea was to disable and re-enable the ports and have the
> host to wait until the KATO timer expires and enter error
> recovery. But in this scenario the host could see DNR for a connection
> attempt which results in the host dropping the connection completely.
>
> We can force to reconnect the host by deleting all controllers
> connected to subsystem, which results the host observing a failing
> command and tries to reconnect.
>
> Also, the item passed into nvmet_subsys_attr_qid_max_show is not a
> member of struct nvmet_port, it is part of nvmet_subsys. Hence,
> don't try to dereference it as struct nvme_ctrl pointer.
>
> Fixes: 2c4282742d04 ("nvmet: Expose max queues to configfs")
The ref is wrong should be
3e980f5995e0 ("nvmet: expose max queues to configfs")
More information about the Linux-nvme
mailing list