]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: move namespace scanning to core
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Apr 2016 11:51:59 +0000 (13:51 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 2 May 2016 15:09:24 +0000 (09:09 -0600)
commit9fc71f90291a5b9f4f383356274b72629f3dfa85
tree32a52527211b8d0c2353f12bc53be31c8a76ed03
parent493270c904bc99fa4266abbe5f4eee6481806702
nvme: move namespace scanning to core

Move the scan work item and surrounding code to the common code.  For now
we need a new finish_scan method to allow the PCI driver to set the
irq affinity hints, but I have plans in the works to obsolete this as well.

Note that this moves the namespace scanning from nvme_wq to the system
workqueue, but as we don't rely on namespace scanning to finish from reset
or I/O this should be fine.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by Jon Derrick: <jonathan.derrick@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