ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
aed857
From 7431c551954ad63fe61cda18888e1e89419bd631 Mon Sep 17 00:00:00 2001
aed857
From: Michal Sekletar <msekleta@redhat.com>
aed857
Date: Fri, 20 Jul 2018 09:48:04 +0200
aed857
Subject: [PATCH] rules: mark hotplugged memory as movable
aed857
aed857
Otherwise the kernel is free to use to memory block also for storing
aed857
non-movable memory (any other memory except anonymous memory allocations
aed857
and page cache). If user later wants to hot unplug the memory the kernel
aed857
will return error in case that some non-movable memory has been place to
aed857
the memory block.
aed857
aed857
Marking hot plugged memory blocks as movable seems to be better
aed857
default. Users with specific needs are free to override this udev rule.
aed857
aed857
Resolves: #1563532
aed857
---
aed857
 rules/40-redhat.rules | 2 +-
aed857
 1 file changed, 1 insertion(+), 1 deletion(-)
aed857
aed857
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
c62b8e
index 34a1df9c48..26f7260010 100644
aed857
--- a/rules/40-redhat.rules
aed857
+++ b/rules/40-redhat.rules
aed857
@@ -4,7 +4,7 @@
aed857
 SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
aed857
 
aed857
 # Memory hotadd request
aed857
-SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/bin/uname -p", RESULT!="s390*", ATTR{state}=="offline", ATTR{state}="online"
aed857
+SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/bin/uname -p", RESULT!="s390*", ATTR{state}=="offline", ATTR{state}="online_movable"
aed857
 
aed857
 # reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
aed857
 ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"