Re: [PATCH ndctl RESEND 2/2] cxl/region: Fix memory device teardown in disable-region

2023-12-01 Thread Dave Jiang
On 11/30/23 21:06, Ira Weiny wrote: > When a region is requested to be disabled, memory devices are normally > automatically torn down. Commit 9399aa667ab0 prevents tear down if > memory is online without a force flag. However, daxctl_dev_get_memory() > may return NULL if the memory device in

[PATCH ndctl RESEND 2/2] cxl/region: Fix memory device teardown in disable-region

2023-11-30 Thread Ira Weiny
When a region is requested to be disabled, memory devices are normally automatically torn down. Commit 9399aa667ab0 prevents tear down if memory is online without a force flag. However, daxctl_dev_get_memory() may return NULL if the memory device in question is not system-ram capable as is the