[Devel] [PATCH RH7 2/4] ve: initialize fsync_enable also for non ve0 environment

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


both for sysctl way and cgroup way of ve creation

https://jira.sw.ru/browse/PSBM-34286
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/ve/ve.c      | 2 ++
 kernel/ve/vecalls.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 8bbba1f..212c781 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -637,6 +637,8 @@ static struct cgroup_subsys_state *ve_create(struct cgroup *cg)
 	if (!ve->ve_name)
 		goto err_name;
 
+	ve->fsync_enable = 2;
+
 	ve->sched_lat_ve.cur = alloc_percpu(struct kstat_lat_pcpu_snap_struct);
 	if (!ve->sched_lat_ve.cur)
 		goto err_lat;
diff --git a/kernel/ve/vecalls.c b/kernel/ve/vecalls.c
index e262c5e..42f2d89 100644
--- a/kernel/ve/vecalls.c
+++ b/kernel/ve/vecalls.c
@@ -259,6 +259,7 @@ static int init_ve_struct(struct ve_struct *ve,
 	ve->_randomize_va_space = ve0._randomize_va_space;
 
 	ve->odirect_enable = 2;
+	ve->fsync_enable = 2;
 
 #ifdef CONFIG_VE_IPTABLES
 	/* Set up ipt_mask as it will be used during
-- 
1.9.3




More information about the Devel mailing list