[Devel] [PATCH libvzctl] scripts: vz-rst-action -- Clear @pseudosuper at the very late stage

Konstantin Khorenko khorenko at virtuozzo.com
Wed Mar 16 03:13:38 PDT 2016


Kirill and Kirill, do we still need it? Looks so.

--
Best regards,

Konstantin Khorenko,
Virtuozzo Linux Kernel Team

On 02/18/2016 09:16 PM, Cyrill Gorcunov wrote:
> We use this protection when restoring AIO tails, so
> that it's too early to drop this flag at setup
> namespace phase. Rather make very late one.
>
> https://jira.sw.ru/browse/PSBM-42488
>
> Tested-by: Kirill Tkhai <ktkhai at virtuozzo.com>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>   scripts/vz-rst-action.in | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/vz-rst-action.in b/scripts/vz-rst-action.in
> index 56f60a9..e255997 100755
> --- a/scripts/vz-rst-action.in
> +++ b/scripts/vz-rst-action.in
> @@ -68,10 +68,14 @@ case "$CRTOOLS_SCRIPT_ACTION" in
>   	ln -s /proc/$pid/ns/net $VE_NETNS_FILE
>
>   	if [ -n "$VEID" ]; then
> -		cgset -r ve.pseudosuper="0" $VEID
>   		cgset -r ve.state="START $pid" $VEID || exit
>   	fi
>   	;;
> +"post-restore")
> +	if [ -n "$VEID" ]; then
> +		cgset -r ve.pseudosuper="0" $VEID
> +	fi
> +	;;
>   "post-setup-namespaces")
>   	restore_devices
>   	;;
>


More information about the Devel mailing list