]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: bring back auto-removal of deleted namespaces during sequential scan
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Feb 2023 22:02:25 +0000 (14:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:31 +0000 (13:55 +0100)
commitca1f916b847cc4cad47972d2256094c881a2e79d
treeec7c365eed92264af3b6941ad7d5dbbc30fd7500
parent3f66f5b0b633d0b3ba2608a3cb8ae87d2a072bb6
nvme: bring back auto-removal of deleted namespaces during sequential scan

[ Upstream commit 04d0747441807e89417440b3005c82ad6f17a377 ]

Bring back the check of the Identify Namespace return value for the
legacy NVMe 1.0-style sequential scanning.  While NVMe 1.0 does not
support namespace management, there are "modern" cloud solutions like
Google Cloud Platform that claim the obsolete 1.0 compliance for no
good reason while supporting proprietary sideband namespace management.

Fixes: 899887d1b693 ("nvme: refactor namespace probing")
Reported-by: Nils Hanke <nh@edgeless.systems>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Nils Hanke <nh@edgeless.systems>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c