mbox series

[RFC,0/4] dax: Clean up dax_region references

Message ID 20230602-dax-region-put-v1-0-d8668f335d45@intel.com (mailing list archive)
Headers show
Series dax: Clean up dax_region references | expand

Message

Ira Weiny June 3, 2023, 2:09 a.m. UTC
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.

[*] https://lore.kernel.org/all/20221203095858.612027-1-liuyongqiang13@huawei.com/

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
---
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,