]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nvme: unmap CMB and remove sysfs file in reset path
authorJon Derrick <jonathan.derrick@intel.com>
Fri, 5 May 2017 20:52:06 +0000 (14:52 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 20 May 2017 16:11:34 +0000 (10:11 -0600)
commitf63572dff1421b6ca6abce71d46e03411e605c94
treeb15534e3f2ef13ba2869b1b2b30cbabd1b675d65
parent5f3394530fbe90d3bcd1c204618960bc50236578
nvme: unmap CMB and remove sysfs file in reset path

CMB doesn't get unmapped until removal while getting remapped on every
reset. Add the unmapping and sysfs file removal to the reset path in
nvme_pci_disable to match the mapping path in nvme_pci_enable.

Fixes: 202021c1a ("nvme : Add sysfs entry for NVMe CMBs when appropriate")
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Reviewed-By: Stephen Bates <sbates@raithlin.com>
Cc: <stable@vger.kernel.org> # 4.9+
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c