]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: move block_device_operations and ns/ctrl freeing to common code
authorAshok Vairavan <ashok.vairavan@oracle.com>
Mon, 19 Dec 2016 23:41:31 +0000 (15:41 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:38 +0000 (13:40 -0700)
commit50b4b4b17a704852a2c05fb6f9eb676372fdc21b
tree008018b3512ed52bb926430a1fc9826cb75603f8
parent18c2bdbb6e84281f3da159b07bb66dd4fa6f6e42
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>
(cherry picked from commit 1673f1f08c8876f3942b4fa5e8f6a40215f15a94)

Orabug: 25130845
Conflicts:
    drivers/nvme/host/pci.c

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/nvme.h
drivers/nvme/host/pci.c