[PATCH v2 0/2] Support multiple target nodes demotion

From: Baolin Wang
Date: Thu Nov 11 2021 - 02:48:52 EST


Hi,

This patch set is used to support multiple target nodes demotion
if a system has multiple slow memory nodes. Please help to review.
Thanks.

Changes from v1:
- Add a new patch to allocate the node_demotion dynamically.
- Update some comments.
- Simplify some variables' name.

Changes from RFC v2:
- Change to 'short' type for target nodes array.
- Remove nodemask instead selecting target node directly.
- Add WARN_ONCE() if the target nodes exceed the maximum value.

Changes from RFC v1:
- Re-define the node_demotion structure.
- Set up multiple target nodes by validating the node distance.
- Add more comments.

Baolin Wang (2):
mm: migrate: Support multiple target nodes demotion
mm: migrate: Allocate the node_demotion structure dynamically

mm/migrate.c | 158 +++++++++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 122 insertions(+), 36 deletions(-)

--
1.8.3.1