nvme-pci: move the call to nvme_cleanup_cmd out of nvme_unmap_data
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2019 15:13:03 +0000 (08:13 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commit915f04c93db4e3a7388c8ad8ddfc28830e4cbce3
tree4ef3a86718e353a3d26a3a976cc2309db3c8651c
parent9b048119a153590b934ef49aae309b723587f527
nvme-pci: move the call to nvme_cleanup_cmd out of nvme_unmap_data

Cleaning up the command setup isn't related to unmapping data, and
disentangling them will simplify error handling a bit down the road.

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