diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2026-03-26 22:28:18 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-04-01 08:12:18 -0700 |
| commit | f8dc1bde187310e0345beb08df949e0c2a4c86ce (patch) | |
| tree | 8257762b0dfc56083f56a43c8542a6572fb14047 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3cba30eed56df3af80ae8d4fde9cf4039eace82a (diff) | |
dax/hmem: Fix singleton confusion between dax_hmem_work and hmem devices
dax_hmem (ab)uses a platform device to allow for a module to autoload in
the presence of "Soft Reserved" resources. The dax_hmem driver had no
dependencies on the "hmem_platform" device being a singleton until the
recent "dax_hmem vs dax_cxl" takeover solution.
Replace the layering violation of dax_hmem_work assuming that there will
never be more than one "hmem_platform" device associated with a global work
item with a dax_hmem local workqueue that can theoretically support any
number of hmem_platform devices.
Fixup the reference counting to only pin the device while it is live in the
queue.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260327052821.440749-7-dan.j.williams@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
