nvme: properly free resources for cancelled command
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Nov 2015 12:03:13 +0000 (13:03 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 22 Dec 2015 16:38:34 +0000 (09:38 -0700)
commiteee417b0697827a6e120199b126b447af3c81b47
tree3898df5e908182560d1d195cefd330a79edbdf38
parentaae239e1910ebc27ec9f7e8b25904a69626cf28c
nvme: properly free resources for cancelled command

We need to move freeing of resources to the ->complete handler to ensure
they are also freed when we cancel the command.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c