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)
committerChristoph Hellwig <hch@lst.de>
Tue, 28 Feb 2023 13:14:29 +0000 (06:14 -0700)
commit0dd6fff2aad4e35633fef1ea72838bec5b47559a
treee78efc565ea79bc71e702f03b72ff950417134d5
parentc0c33b94cfc23d21f67c7569a8785b33c74d6e3d
nvme: bring back auto-removal of deleted namespaces during sequential scan

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: 1a893c2bfef4 ("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>
drivers/nvme/host/core.c