]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: move namespace scanning to common code
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Dec 2016 03:30:55 +0000 (19:30 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:40 +0000 (13:40 -0700)
commit0df5b5e14b96993dc9babe52361b00f1bff587c5
treefb476310f3d41a89f55cced59d5d684b5a2cd0b6
parent9cea51b99e9c07e38e78c861c263df143196493c
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>
(cherry picked from commit 5bae7f73d378a986671a3cad717c721b38f80d9e)

Orabug: 25130845
Conflicts:
    drivers/nvme/host/nvme.h
    drivers/nvme/host/pci.c

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c