The patch to force device tear down on region disable caused a
regression for regions without system ram.

Add a test for such a case and a fix to the patch.

Signed-off-by: Ira Weiny <ira.we...@intel.com>
---
[djiang: RESEND with proper mailing lists.]

---
Ira Weiny (2):
      ndctl/test: Add destroy region test
      cxl/region: Fix memory device teardown in disable-region

 cxl/region.c               |  3 ++
 daxctl/lib/libdaxctl.c     |  4 +--
 daxctl/lib/libdaxctl.sym   |  5 +++
 daxctl/libdaxctl.h         |  1 +
 test/cxl-destroy-region.sh | 76 ++++++++++++++++++++++++++++++++++++++++++++++
 test/meson.build           |  2 ++
 6 files changed, 89 insertions(+), 2 deletions(-)
---
base-commit: cbf049039482a56c2b66ede3e10d5e9c652890b7
change-id: 20231130-fix-region-destroy-a85ad1fde87b

Best regards,
-- 
Ira Weiny <ira.we...@intel.com>


Reply via email to