On Tue, Aug 18, 2015 at 04:44:47PM +0300, Andrey Ryabinin wrote:
...
> @@ -81,6 +82,11 @@ struct ve_struct ve0 = {
>  #endif
>       .sched_lat_ve.cur       = &ve0_lat_stats,
>       .init_cred              = &init_cred,
> +#ifdef CONFIG_AIO
> +     .aio_nr                 = 0,
> +     .aio_max_nr             = AIO_MAX_NR_DEFAULT,
> +     .aio_nr_lock            = __SPIN_LOCK_UNLOCKED(ve0.aio_nr_lock),
> +#endif

There is no need int this hunk, because the 'do_init' part of ve_create
you introduce below is called for ve0 too.

Other than that, looks OK.

>  };
>  EXPORT_SYMBOL(ve0);
>  
> @@ -692,6 +698,12 @@ do_init:
>       mutex_init(&ve->devmnt_mutex);
>       kmapset_init_key(&ve->ve_sysfs_perms);
>  
> +#ifdef CONFIG_AIO
> +     spin_lock_init(&ve->aio_nr_lock);
> +     ve->aio_nr = 0;
> +     ve->aio_max_nr = AIO_MAX_NR_DEFAULT;
> +#endif
> +
>       return &ve->css;
>  
>  err_log:
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to