]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: Namepace identification descriptor list is optional
authorKeith Busch <kbusch@kernel.org>
Mon, 2 Dec 2019 15:44:59 +0000 (00:44 +0900)
committerKeith Busch <kbusch@kernel.org>
Mon, 2 Dec 2019 21:10:00 +0000 (06:10 +0900)
commit20c608c9b37222de76d50cf0aa84e9f274dd214f
tree806b87ae0af0f6f3390f6b3dd9d0d22c2476e520
parentb675972c622344278ecb43eb8bd69e9fffccdd59
nvme: Namepace identification descriptor list is optional

Despite NVM Express specification 1.3 requires a controller claiming to
be 1.3 or higher implement Identify CNS 03h (Namespace Identification
Descriptor list), the driver doesn't really need this identification in
order to use a namespace. The code had already documented in comments
that we're not to consider an error to this command.

Return success if the controller provided any response to an
namespace identification descriptors command.

Fixes: e15d212bc6bae3a1 ("nvme: make nvme_report_ns_ids propagate error back")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=205679
Reported-by: Ingo Brunberg <ingo_brunberg@web.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: stable@vger.kernel.org # 5.4+
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c