NVMe: Implement namespace list scanning
authorKeith Busch <keith.busch@intel.com>
Thu, 22 Oct 2015 21:45:06 +0000 (15:45 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 22 Dec 2015 16:38:33 +0000 (09:38 -0700)
commit540c801c65eb58e05e0ca38b6fd644a83d7e2b33
tree075d454c67f120adcc150464fad48ab3bfa9f430
parent6bf25d16410d8d95e3552f31c6a99e3fc3d31752
NVMe: Implement namespace list scanning

The NVMe 1.1 specification provides an identify mode to return a
list of active namespaces. This is more efficient to discover which
namespace identifiers are active on a controller, providing potentially
significant improvement in scan time for controllers with sparesly
populated namespaces.

Signed-off-by: Keith Busch <keith.busch@intel.com>
[hch: add quirk for the broken Qemu Identify implementation.  To be relaxed
 later]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c