[Devel] [PATCH RHEL7 COMMIT] ve: remove is_locked check from ve_can_attach()

Konstantin Khorenko khorenko at virtuozzo.com
Fri Feb 19 03:37:04 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.4.5.vz7.11.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.4.5.vz7.11.4
------>
commit de8730177e983bd40157b37f1650e0f1f297597b
Author: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
Date:   Fri Feb 19 15:37:04 2016 +0400

    ve: remove is_locked check from ve_can_attach()
    
    This check is obsolete, because ve->is_locked is a part of legacy interface
    and is broken anyway: set in case of VE_LOCK in do_env_create(), but never
    dropped.
    
    Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
    Reviewed-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 kernel/ve/ve.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 3b151d5..72dc2d1 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -723,9 +723,6 @@ static int ve_can_attach(struct cgroup *cg, struct cgroup_taskset *tset)
 	if (!ve->veid)
 		return -ENOENT;
 
-	if (ve->is_locked)
-		return -EBUSY;
-
 	/*
 	 * We allow only one single-threaded process to attach
 	 * into a container, which usually stands for "init"


More information about the Devel mailing list