linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Daniel Wagner <dwagner@suse.de>,
	"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>
Cc: Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>,
	Sagi Grimberg <sagi@grimberg.me>
Subject: Re: [PATCH v4] nvmet: force reconnect when number of queue changes
Date: Tue, 25 Oct 2022 17:30:57 +0000	[thread overview]
Message-ID: <3e102dd5-da6a-cdae-5bf7-6c3f635a9308@nvidia.com> (raw)
In-Reply-To: <20221025155008.30028-1-dwagner@suse.de>

On 10/25/2022 8:50 AM, Daniel Wagner wrote:
> In order to test queue number changes we need to make sure that the
> host reconnects. Because only when the host disconnects from the
> target the number of queues are allowed to change according the spec.
> 
> The initial idea was to disable and re-enable the ports and have the
> host wait until the KATO timer expires, triggering error
> recovery. Though the host would see a DNR reply when trying to
> reconnect. Because of the DNR bit the connection is dropped
> completely. There is no point in trying to reconnect with the same
> parameters according the spec.
> 
> We can force to reconnect the host is by deleting all controllers. The
> host will observe any newly posted request to fail and thus starts the
> error recovery but this time without the DNR bit set.
> 

Without looking into the spec, isn't some sort of AEN should be used for
this ? please correct me if I'm wrong but deleting all the controllers 
and relaying on reconnect maybe overkill ? if it doesn't exists in
the NVMe spec then perhaps we should think/work on it to update the
spec ? Is it worth it ?

> Reviewed-by: Hannes Reinecke <hare@suse.de>
> Acked-by: Sagi Grimberg <sagi@grimberg.me>
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---


Reviewed-by: Chaitanya Kulkarni  <kch@nvidia.com>

-ck



  reply	other threads:[~2022-10-25 17:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 15:50 [PATCH v4] nvmet: force reconnect when number of queue changes Daniel Wagner
2022-10-25 17:30 ` Chaitanya Kulkarni [this message]
2022-10-26  5:53   ` Hannes Reinecke
2022-10-26  7:22     ` Daniel Wagner
2022-11-01  9:45 ` Christoph Hellwig

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=3e102dd5-da6a-cdae-5bf7-6c3f635a9308@nvidia.com \
    --to=chaitanyak@nvidia.com \
    --cc=dwagner@suse.de \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --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;
as well as URLs for NNTP newsgroup(s).