daxctl-device fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | daxctl: fail reconfigure-device based on kernel onlining policyDocumentation/ daxctl/ daxctl/ +4 more | +85 | 0 replies | |
| 2/3 | libdaxctl: add an API to check if a device is activedaxctl/ daxctl/ daxctl/ | +12 | 0 replies | |
| 3/3 | libndctl: check for active system-ram before disabling daxctl devicesndctl/ test/ | +40 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [ndctl PATCH 0/3] daxctl-device fixes
This series contains a couple of fixes:
1/ Check the kernel policy for onlining blocks. If that is set to 'online', and if daxctl is passed --no-online or is onlining to ZONE_MOVABLE (default), then fail the reconfigure command as we know we can't satisfy that ask. (Prior to these patches, the reconfigure would succeed, and we'd print a warning after the fact, which may result in a surprising experience).
2/ For ndctl disable-namespace (and destroy-namespace), fail the operation if the dax device is active as system-ram.
Additionally, augment the daxctl-devices.sh unit test to test for both of these conditions and the expected (fixed) behavior in both cases.
Vishal Verma (3):
daxctl: fail reconfigure-device based on kernel onlining policy
libdaxctl: add an API to check if a device is active
libndctl: check for active system-ram before disabling daxctl devices
.../daxctl/daxctl-reconfigure-device.txt | 12 ++++- daxctl/lib/libdaxctl-private.h | 1 + daxctl/lib/libdaxctl.c | 31 +++++++++++ ndctl/lib/libndctl.c | 25 ++++++++- daxctl/libdaxctl.h | 2 + daxctl/device.c | 10 ++++ daxctl/lib/libdaxctl.sym | 6 +++ test/daxctl-devices.sh | 52 +++++++++++++++++++ 8 files changed, 137 insertions(+), 2 deletions(-)
Signature · 4 lines
2.30.2 _______________________________________________ Linux-nvdimm mailing list -- [email protected] To unsubscribe send an email to [email protected]