]> www.infradead.org Git - nvme.git/commit
nvme: requeue namespace scan on missed AENs
authorHannes Reinecke <hare@kernel.org>
Thu, 3 Apr 2025 07:19:29 +0000 (09:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 Apr 2025 14:26:50 +0000 (16:26 +0200)
commit9546ad1a9bda7362492114f5866b95b0ac4a100e
tree618a2f4db6f009e22105b49351757f1735ac8942
parent72070e57b0a518ec8e562a2b68fdfc796ef5c040
nvme: requeue namespace scan on missed AENs

Scanning for namespaces can take some time, so if the target is
reconfigured while the scan is running we may miss a Attached Namespace
Attribute Changed AEN.

Check if the NVME_AER_NOTICE_NS_CHANGED bit is set once the scan has
finished, and requeue scanning to pick up any missed change.

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