dcavalca / rpms / systemd

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