nvme: move namespace scanning to common code
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Nov 2015 14:39:07 +0000 (15:39 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 17:59:40 +0000 (10:59 -0700)
commit5bae7f73d378a986671a3cad717c721b38f80d9e
treeb469adfc577da6e44aee7bae02e8ba303ab7c2cb
parentce4541f40a949cd9a9c9f308b1a6a86914ce6e1a
nvme: move namespace scanning to common code

The namespace scanning code has been mostly generic already, we just
need to store a pointer to the tagset in the nvme_ctrl structure, and
add a method to check if a controller is I/O incapable.  The latter
will hopefully be replaced by a proper controller state machine soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[Fixed pr conflicts]
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c