nvme-pci: merge nvme_free_iod into nvme_unmap_data
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2019 15:15:19 +0000 (08:15 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commit7fe07d14f71fabef642a478626248a9121e95b7b
tree6fb84a6aabae9d416daa65e252a289260843553b
parent915f04c93db4e3a7388c8ad8ddfc28830e4cbce3
nvme-pci: merge nvme_free_iod into nvme_unmap_data

This means we now have a function that undoes everything nvme_map_data
does and we can simplify the error handling a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
drivers/nvme/host/pci.c