[Devel] [PATCH RH9 1/5] ve/time: remove our per-ve times in favor of mainstream time-namespaces

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Mon Oct 4 17:59:59 MSK 2021


https://jira.sw.ru/browse/PSBM-134393

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 include/linux/ve.h | 2 --
 kernel/ve/ve.c     | 9 ---------
 2 files changed, 11 deletions(-)

diff --git a/include/linux/ve.h b/include/linux/ve.h
index 3665e8c6a853..4de91c86a084 100644
--- a/include/linux/ve.h
+++ b/include/linux/ve.h
@@ -36,8 +36,6 @@ struct ve_struct {
 	struct rw_semaphore	op_sem;
 
 	/* per VE CPU stats*/
-	u64			start_time;		/* monotonic time */
-	u64			start_boottime;		/* boot based time */
 	u64			start_jiffies;		/* Deprecated */
 
 	struct nsproxy __rcu	*ve_ns;
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 369df91efda4..d45a10c02493 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -452,15 +452,6 @@ static int ve_start_container(struct ve_struct *ve)
 	if (task_active_pid_ns(tsk) != tsk->nsproxy->pid_ns_for_children)
 		return -ECHILD;
 
-	/*
-	 * Setup uptime for new containers only, if restored
-	 * the value won't be zero here already but setup from
-	 * cgroup write while resuming the container.
-	 */
-	if (ve->start_time == 0) {
-		ve->start_time = tsk->start_time;
-		ve->start_boottime = tsk->start_boottime;
-	}
 	/* The value is wrong, but it is never compared to process
 	 * start times */
 	ve->start_jiffies = get_jiffies_64();
-- 
2.31.1



More information about the Devel mailing list