diff options
author | Dan Williams <dan.j.williams@intel.com> | 2022-06-11 02:39:59 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-07-26 21:23:01 +0200 |
commit | 99183d26ed6191010fca09518dae34d6aff3cd14 (patch) | |
tree | 8718b7ea34f914b4b8b385679e7cf656494c3937 /drivers/cxl/cxl.h | |
parent | cxl/region: Add region driver boiler plate (diff) | |
download | linux-99183d26ed6191010fca09518dae34d6aff3cd14.tar.xz linux-99183d26ed6191010fca09518dae34d6aff3cd14.zip |
cxl/pmem: Fix offline_nvdimm_bus() to offline by bridge
Be careful to only disable cxl_pmem objects related to a given
cxl_nvdimm_bridge. Otherwise, offline_nvdimm_bus() reaches across CXL
domains and disables more than is expected.
Fixes: 21083f51521f ("cxl/pmem: Register 'pmem' / cxl_nvdimm devices")
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165784339569.1758207.1557084545278004577.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/cxl.h')
-rw-r--r-- | drivers/cxl/cxl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cxl/cxl.h b/drivers/cxl/cxl.h index e96bf8ccccf2..46d3f173a700 100644 --- a/drivers/cxl/cxl.h +++ b/drivers/cxl/cxl.h @@ -418,6 +418,7 @@ struct cxl_nvdimm_bridge { struct cxl_nvdimm { struct device dev; struct cxl_memdev *cxlmd; + struct cxl_nvdimm_bridge *bridge; }; /** |