]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:46 +0000 (15:44 +0200)
commit6d6a43a086117930b5acd79c9350e00ef56027fa
treed1d9183e4307188ea7b46756264d0b84ac4fd9ac
parent423f1752a0283b3f54f175be893f610f51b3aaf5
nvme: unmap CMB and remove sysfs file in reset path

commit f63572dff1421b6ca6abce71d46e03411e605c94 upstream.

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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/pci.c