]> www.infradead.org Git - nvme.git/commit
nvme: re-read ANA log page after ns scan completes
authorHannes Reinecke <hare@kernel.org>
Thu, 3 Apr 2025 07:19:30 +0000 (09:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 05:07:14 +0000 (07:07 +0200)
commit62baf70c327444338c34703c71aa8cc8e4189bd6
tree4ec6cf6dcdd8b6920a08ba55013b0d47b1ddc13a
parent9546ad1a9bda7362492114f5866b95b0ac4a100e
nvme: re-read ANA log page after ns scan completes

When scanning for new namespaces we might have missed an ANA AEN.

The NVMe base spec (NVMe Base Specification v2.1, Figure 151 'Asynchonous
Event Information - Notice': Asymmetric Namespace Access Change) states:

  A controller shall not send this even if an Attached Namespace
  Attribute Changed asynchronous event [...] is sent for the same event.

so we need to re-read the ANA log page after we rescanned the namespace
list to update the ANA states of the new namespaces.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c