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

Dmitry Monakhov dmonakhov at openvz.org
Tue Jun 30 05:18:48 PDT 2015


Pavel Tikhomirov <ptikhomirov at virtuozzo.com> writes:

> v2: only on ve cgroup creation
ACK
>
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20150630/6f28a31d/attachment-0001.sig>


More information about the Devel mailing list