]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:47:05 +0000 (07:47 +0200)
commit2fbd0e19301f380be96f7aebc836e4ef359afc06
tree03d4e9fd8f2f4dabd584bda1a061464d03b90f5e
parente9f8bfb80e805d95fc624e9264e61df64ca9a7a3
nvme: requeue namespace scan on missed AENs

[ Upstream commit 9546ad1a9bda7362492114f5866b95b0ac4a100e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c