]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: properly free resources for cancelled command
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Nov 2015 12:03:13 +0000 (13:03 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:50 +0000 (13:40 -0700)
commite6c4383a3ebedeb84c58d68fecab2b14e2764bce
treedaca8a0d144b12d12d6796cd1f451201e67837b8
parent9c2b51b840354ef65be16a5aaf6e8151ed590e4c
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>
(cherry picked from commit eee417b0697827a6e120199b126b447af3c81b47)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c