Skip to content

cxl: Fix nvdimm_bus race for nvdimm devices

Dave Jiang linux-cxl llvm oe-kbuild-all 3 versions – Applied

Status from this message: Applied to cxl/fixes

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v23 patches 4 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- 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)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2cxl: Move devm_cxl_add_nvdimm_bridge() to cxl_pmem.kodrivers/cxl/core/pmem.c drivers/cxl/cxl.h drivers/cxl/pmem.c+19 -100 replies
2/2cxl: Fix race of nvdimm_bus object when creating nvdimm objectsdrivers/cxl/core/pmem.c drivers/cxl/cxl.h drivers/cxl/pmem.c+39 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

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

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)

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

Signature · 1 line
2.53.0