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

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Jun 30 00:25:55 PDT 2015


v2: only on ve cgroup creation

https://jira.sw.ru/browse/PSBM-34286
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/ve/ve.c | 2 ++
 1 file changed, 2 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;
-- 
1.9.3




More information about the Devel mailing list