]> 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)
commit812c68894c5c9191ff448d1e76ba76c9ecdf8ddd
tree1fc7504178f0e571df5f34bfd87c23bf0d11634a
parent95623c5256b2937542262445da3e04331e387e1f
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