summaryrefslogtreecommitdiff
path: root/system/lvm2/mlockall-default-config.patch
blob: 898611ec75ac3c23be255c150d19477d46e70a57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- ./conf/example.conf.in.old	2021-10-04 09:59:13.191167497 +0000
+++ ./conf/example.conf.in	2021-10-04 09:59:41.718184441 +0000
@@ -1696,7 +1696,7 @@
 	# Prior to version 2.02.62, LVM used mlockall() to pin the whole
 	# process's memory while activating devices.
 	# This configuration option has an automatic default value.
-	# use_mlockall = 0
+	use_mlockall = 1
 
 	# Configuration option activation/monitoring.
 	# Monitor LVs that are activated.diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index 8ab1fde..57b2443 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -53,7 +53,7 @@
 #define DEFAULT_WAIT_FOR_LOCKS 1
 #define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
 #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
-#define DEFAULT_USE_MLOCKALL 0
+#define DEFAULT_USE_MLOCKALL 1
 #define DEFAULT_METADATA_READ_ONLY 0
 #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0