]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@fb.com>
Wed, 10 Feb 2016 15:51:15 +0000 (08:51 -0700)
commita64fed326cff8e95ab4535424b9c9293923c955d
tree2fab3f89754627f025353af748aab4fccdda456e
parent0ccb66c7a5a4cd0badc040648dd625a67b0fa12b
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