aboutsummaryrefslogtreecommitdiffstats
path: root/main/lvm2/mlockall-default-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/lvm2/mlockall-default-config.patch')
-rw-r--r--main/lvm2/mlockall-default-config.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/lvm2/mlockall-default-config.patch b/main/lvm2/mlockall-default-config.patch
new file mode 100644
index 0000000000..78eecf0a76
--- /dev/null
+++ b/main/lvm2/mlockall-default-config.patch
@@ -0,0 +1,11 @@
+--- ./conf/example.conf.in.orig
++++ ./conf/example.conf.in
+@@ -1246,7 +1246,7 @@
+ # Use the old behavior of mlockall to pin all memory.
+ # Prior to version 2.02.62, LVM used mlockall() to pin
+ # the whole process's memory while activating devices.
+- use_mlockall = 0
++ use_mlockall = 1
+
+ # Configuration option activation/monitoring.
+ # Monitor LVs that are activated.