Re: [PATCH v3 0/2] cxl: Fix nvdimm_bus race for nvdimm devices

Dave Jiang
2026-02-23T22:37:41Z

On 2/13/26 3:40 PM, Dave Jiang wrote:
> v3:
> - Just move the symbol of devm_cxl_add_nvdimm_bridge() with a wrapper function. (Dan)
> - Squash the functionality of patch 2 and 3. (Dan)
> - Introduce a flag to invalidate cxl_nvdimm when releasing nvdimm_bus. (Dan)
> - With cxl_nvdimm marked as "invalidated" no need the check in cxl_nvdimm_driver. (Dan)

Applied to cxl/fixes
16fb82cadd63 cxl: Fix race of nvdimm_bus object when creating nvdimm objects
e7e222ad73d9 cxl: Move devm_cxl_add_nvdimm_bridge() to cxl_pmem.ko

>
> v2:
> - Try a different approach
>
> A small series to address a race for nvdimm_bus object when using the
> nvdimm_bridge object.
>
> Dave Jiang (2):
> cxl: Move devm_cxl_add_nvdimm_bridge() to cxl_pmem.ko
> cxl: Fix race of nvdimm_bus object when creating nvdimm objects
>
> drivers/cxl/core/pmem.c | 40 ++++++++++++++++++++++++++++++----------
> drivers/cxl/cxl.h | 7 +++++++
> drivers/cxl/pmem.c | 22 +++++++++++++++++++++-
> 3 files changed, 58 insertions(+), 11 deletions(-)
>
>
> base-commit: 63fbf275fa9f18f7020fb8acf54fa107e51d0f23