]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/nvme/host/pci.c
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)
committerJens Axboe <axboe@fb.com>
Wed, 10 Feb 2016 15:51:15 +0000 (08:51 -0700)
commit1b3c47c182aac70c4487105d2e22a17f0193525f
tree2fab3f89754627f025353af748aab4fccdda456e
parentf4f0f63e6f01055dfbdb7bc5e83935e1bdfa1980
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>
drivers/nvme/host/core.c
drivers/nvme/host/pci.c