]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: move block_device_operations and ns/ctrl freeing to common code
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Nov 2015 09:54:19 +0000 (10:54 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 17:59:39 +0000 (10:59 -0700)
commit12f79309ef8ade308afbf9ac2ae272ed8b69ecfe
tree7f255b4575c1a372f07195be6712dfdae209838f
parentd1be9f01bc1bfb5199a3f7abb075d0a8e04250ab
nvme: move block_device_operations and ns/ctrl freeing to common code

This moves the block_device_operations over to common code mostly
as-is.  The only change is that the ns and ctrl refcounting got some
small refcounting to have wrappers around the kref_put operations.

A new free_ctrl operation is added to allow the PCI driver to free
it's ressources on the final drop.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[Moved the integrity and pr changes due to merge conflict]
Signed-off-by: Keith Busch <keith.busch@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