[Devel] [PATCH RH7 4/4] ve: cgroup: initialize odirect_enable, features and _randomize_va_space

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Thu Jun 25 05:56:24 PDT 2015


Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/ve/ve.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 400f7f3..0dc1d3b 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -665,6 +665,11 @@ static struct cgroup_subsys_state *ve_create(struct cgroup *cg)
 	if (!ve->ve_name)
 		goto err_name;
 
+	ve->_randomize_va_space = ve0._randomize_va_space;
+
+	ve->features = VE_FEATURES_DEF;
+
+	ve->odirect_enable = 2;
 	ve->fsync_enable = 2;
 
 #ifdef CONFIG_VE_IPTABLES
-- 
1.9.3




More information about the Devel mailing list