All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sagi Grimberg <sagi@grimberg.me>
To: linux-nvme@lists.infradead.org
Cc: Christoph Hellwig <hch@lst.de>, Keith Busch <kbusch@kernel.org>,
	Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>,
	Hannes Reinecke <hare@suse.de>, Daniel Wagner <dwagner@suse.de>,
	James Smart <james.smart@broadcom.com>
Subject: [PATCH v2 0/2] Fix missing AENs when discovery controllers are disconnected
Date: Thu, 22 Sep 2022 11:15:35 +0300	[thread overview]
Message-ID: <20220922081538.13364-1-sagi@grimberg.me> (raw)

When a discovery controller is disconnected, no AENs will
arrive to notify the host about discovery log-page changes.

Fix this with  trapping a new dedicated kernel udev event for persistent
discovery controllers that reconnect. Prior attempt tried to use
"connected" event already sent by the kernel however this also applied
on the first connected, causing undesired side-effects when issuing
a simple 'discover' command.

The patchset includes the nvme-cli counter-part as well.

Sagi Grimberg (2):
  nvme: enumerate controller flags
  nvme: send a rediscover uevent when a persistent discovery controller
    reconnects

 drivers/nvme/host/core.c | 10 ++++++++++
 drivers/nvme/host/nvme.h |  8 ++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

-- 
2.34.1



             reply	other threads:[~2022-09-22  8:15 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22  8:15 Sagi Grimberg [this message]
2022-09-22  8:15 ` [PATCH v2 1/2] nvme: enumerate controller flags Sagi Grimberg
2022-09-22  8:34   ` Daniel Wagner
2022-09-22 15:05   ` James Smart
2022-09-22 15:25   ` Keith Busch
2022-09-22  8:15 ` [PATCH v2 2/2] nvme: send a rediscover uevent when a persistent discovery controller reconnects Sagi Grimberg
2022-09-22  8:30   ` Daniel Wagner
2022-09-22  8:33     ` Sagi Grimberg
2022-09-22  8:34     ` Daniel Wagner
2022-09-22  8:36   ` Daniel Wagner
2022-09-22 15:05   ` James Smart
2022-09-22  8:15 ` [PATCH v2 3/2 nvme-cli] fabrics: re-read the discovery log page when a discovery controller reconnected Sagi Grimberg
2022-09-22  8:37   ` Daniel Wagner
2022-09-22 15:06   ` James Smart
2022-09-27  7:52   ` Daniel Wagner
2022-09-27 10:50     ` Belanger, Martin
2022-09-27 11:22       ` Daniel Wagner
2022-09-27 11:59         ` Daniel Wagner
2022-09-27  7:18 ` [PATCH v2 0/2] Fix missing AENs when discovery controllers are disconnected Christoph Hellwig
2022-09-28  6:47   ` Sagi Grimberg

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=20220922081538.13364-1-sagi@grimberg.me \
    --to=sagi@grimberg.me \
    --cc=Chaitanya.Kulkarni@wdc.com \
    --cc=dwagner@suse.de \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=james.smart@broadcom.com \
    --cc=kbusch@kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    /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.