summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2021-02-26 08:17:25 +0100
committerChristoph Hellwig <hch@lst.de>2021-03-11 11:48:34 +0100
commitd95c1f4179a7f3ea8aa728ed00252a8ed0f8158f (patch)
tree44b285babf5401ce9c111d50940f4e8a15449874 /drivers/dma
parente6ad55988b968bd4c54fd182d0bd3d7fcb969779 (diff)
nvme: simplify error logic in nvme_validate_ns()
We only should remove namespaces when we get fatal error back from the device or when the namespace IDs have changed. So instead of painfully masking out error numbers which might indicate that the error should be ignored we could use an NVME status code to indicated when the namespace should be removed. That simplifies the final logic and makes it less error-prone. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions