mbox series

[ndctl,RESEND,0/2] ndctl: Fix ups for region destroy

Message ID 20231130-fix-region-destroy-v1-0-7f916d2bd379@intel.com
Headers show
Series ndctl: Fix ups for region destroy | expand

Message

Ira Weiny Dec. 1, 2023, 4:06 a.m. UTC
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.weiny@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,