summaryrefslogtreecommitdiff
path: root/drivers/cxl/mem.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-12-02 00:33:32 +0300
committerDan Williams <dan.j.williams@intel.com>2022-12-03 10:06:29 +0300
commit16d53cb0d6900ba7c5920397480016d3ee844610 (patch)
tree73af5b85b3d283fc6413450adfe0f009dbb2f605 /drivers/cxl/mem.c
parentcb9cfff82f6a862c1f54b8b01d9d9a979bb8ae78 (diff)
downloadlinux-16d53cb0d6900ba7c5920397480016d3ee844610.tar.xz
cxl/region: Drop redundant pmem region release handling
Now that a cxl_nvdimm object can only experience ->remove() via an unregistration event (because the cxl_nvdimm bind attributes are suppressed), additional cleanups are possible. It is already the case that the removal of a cxl_memdev object triggers ->remove() on any associated region. With that mechanism in place there is no need for the cxl_nvdimm removal to trigger the same. Just rely on cxl_region_detach() to tear down the whole cxl_pmem_region. Tested-by: Robert Richter <rrichter@amd.com> Link: https://lore.kernel.org/r/166993041215.1882361.6321535567798911286.stgit@dwillia2-xfh.jf.intel.com Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/mem.c')
0 files changed, 0 insertions, 0 deletions