Skip to content

daxctl-device fixes

Vishal Verma linux-nvdimm nvdimm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3daxctl: fail reconfigure-device based on kernel onlining policyDocumentation/daxctl/daxctl-reconfigure-device.txt daxctl/device.c daxctl/lib/libdaxctl-private.h +4 more+85 -10 replies
2/3libdaxctl: add an API to check if a device is activedaxctl/lib/libdaxctl.c daxctl/lib/libdaxctl.sym daxctl/libdaxctl.h+12 -00 replies
3/3libndctl: check for active system-ram before disabling daxctl devicesndctl/lib/libndctl.c test/daxctl-devices.sh+40 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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]