]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: Log the ctrl device name instead of the underlying pci device name
authorSagi Grimberg <sagig@mellanox.com>
Wed, 10 Feb 2016 15:51:15 +0000 (08:51 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:58 +0000 (13:40 -0700)
commite4148d39f820700650e536881b072bf8802ab63b
tree0b31346bb3f82452d845eef1a8892044b76f4cea
parentaf319ec34c0d27c47d6737c923947cd1dc05eb17
nvme: Log the ctrl device name instead of the underlying pci device name

Having the ctrl name "nvmeX" seems much more friendly than
the underlying device name. Also, with other nvme transports
such as the soon to come nvme-loop we don't have an underlying
device so it doesn't makes sense to make up one.

In order to help matching an instance name to a pci function,
we add a info print in nvme_probe.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Manually fixed up the hunk in nvme_cancel_queue_ios().

Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 1b3c47c182aac70c4487105d2e22a17f0193525f)

Orabug: 25130845

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/pci.c