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 <ktk...@virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcu...@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
        ;;

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to