nvme: ignore zone validate errors on subsequent scans
authorKeith Busch <kbusch@kernel.org>
Fri, 23 Oct 2020 19:16:28 +0000 (12:16 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Oct 2020 08:58:42 +0000 (09:58 +0100)
commit8685699c28d7452ff06d62b4692df985eb7301f0
tree4c8fb501da65955cb32b5056f49a106028d13a9e
parentf255c19b3ab46d3cad3b1b2e1036f4c926cb1d0c
nvme: ignore zone validate errors on subsequent scans

Revalidating nvme zoned namespaces requires IO commands, and there are
controller states that prevent IO. For example, a sanitize in progress
is required to fail all IO, but we don't want to remove a namespace
we've previously added just because the controller is in such a state.
Suppress the error in this case.

Reported-by: Michael Nguyen <michael.nguyen@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c