]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit534aa592eacfec278bcad4c12b3c5ff3835e8259
treeb469adfc577da6e44aee7bae02e8ba303ab7c2cb
parent6a78b1f29e031493bd9a38f8259d9b92c8e51eb3
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