In[*] Yongqiang Liu presented a fix to the reference counting associated
with the dax_region in hmem.  At the time it was thought the patch was
unnecessary because dax_region_unregister() call would properly handle
reference counting.

Upon closer inspection Paul noted that this was not the case.  In fact
Yongqiang's patch was correct but there were other issues as well.

This series includes Yongqiang's patch and breaks up additional fixes
which can be backported if necessary followed by a final patch which
simplifies the reference counting.


Signed-off-by: Ira Weiny <>
Ira Weiny (3):
      dax/bus: Fix leaked reference in alloc_dax_region()
      dax/cxl: Fix refcount leak in cxl_dax_region_probe()
      dax/bus: Remove unnecessary reference in alloc_dax_region()

Yongqiang Liu (1):
      dax/hmem: Fix refcount leak in dax_hmem_probe()

 drivers/dax/bus.c       | 6 +++++-
 drivers/dax/cxl.c       | 7 +------
 drivers/dax/hmem/hmem.c | 7 +------
 drivers/dax/pmem.c      | 8 +-------
 4 files changed, 8 insertions(+), 20 deletions(-)
base-commit: 921bdc72a0d68977092d6a64855a1b8967acc1d9
change-id: 20230602-dax-region-put-72c289137cb1

Best regards,
Ira Weiny <>

Reply via email to