]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm: Export nvdimm shutdown helper, nvdimm_delete()
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Jun 2021 23:18:22 +0000 (16:18 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Jun 2021 23:47:22 +0000 (16:47 -0700)
commiteb9f4c7b1efc9ba96f46b2f74b105990bf245614
tree1fc7504178f0e571df5f34bfd87c23bf0d11634a
parent56a3c41a98649304e96af884204b71292ef905a5
libnvdimm: Export nvdimm shutdown helper, nvdimm_delete()

CXL is a hotplug bus and arranges for nvdimm devices to be dynamically
discovered and removed. The libnvdimm core manages shutdown of nvdimm
security operations when the device is unregistered. That functionality
is moved to nvdimm_delete() and invoked by the CXL-to-nvdimm glue code.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162379910271.2993820.2955889139842401250.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c
drivers/nvdimm/dimm_devs.c
include/linux/libnvdimm.h