Skip to contentSkip to conversation

sched/numa: fix set cpupid on page migration twice

PATCH Superseded Wanpeng Li 4 participants 5 messages Dec 5, 2013 – Dec 10, 2013

Subsystems (3)

v1 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

Wanpeng Li

author
#0 lore raw

PATCH 1/2 sched/numa: fix set cpupid on page migration twice

commit 7851a45cd3 (mm: numa: Copy cpupid on page migration) copy over the cpupid at page migration time, there is unnecessary to set it again in migrate_misplaced_transhuge_page, this patch fix it.

---
 mm/migrate.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
mm/migrate.c +0 -2
index bb94004..fdb70f7 100644
@@ -1736,8 +1736,6 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm,
 	if (!new_page)
 		goto out_fail;
 
-	page_cpupid_xchg_last(new_page, page_cpupid_last(page));
-
 	isolated = numamigrate_isolate_page(pgdat, page);
 	if (!isolated) {
 		put_page(new_page);
Signature · 1 line
1.7.7.6
author
#1 lore raw

PATCH 2/2 sched/numa: drop idx field of task_numa_env struct

Drop unused idx field of task_numa_env struct.

---
 kernel/sched/fair.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched/fair.c +1 -1
index fd773ad..ea3fd1e 100644
@@ -1037,7 +1037,7 @@ struct task_numa_env {
 
 	struct numa_stats src_stats, dst_stats;
 
-	int imbalance_pct, idx;
+	int imbalance_pct;
 
 	struct task_struct *best_task;
 	long best_imp;
Signature · 1 line
1.7.7.6
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] sched/numa: drop idx field of task_numa_env struct

Quoted 3 lines · Wanpeng Li

Drop unused idx field of task_numa_env struct.

Signature · 7 lines
All rights reversed

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Reviewed-by on v1 2/2
#3 lore raw

Re: [PATCH 2/2] sched/numa: drop idx field of task_numa_env struct

In reply to Wanpeng Li
Quoted 3 lines · Wanpeng Li

Drop unused idx field of task_numa_env struct.

Quoted 26 lines
---
 kernel/sched/fair.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched/fair.c +1 -1
index fd773ad..ea3fd1e 100644
@@ -1037,7 +1037,7 @@ struct task_numa_env {
 
 	struct numa_stats src_stats, dst_stats;
 
-	int imbalance_pct, idx;
+	int imbalance_pct;
 
 	struct task_struct *best_task;
 	long best_imp;
Signature · 7 lines
1.7.7.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#4 lore raw

[tip:sched/core] sched/numa: Drop idx field of task_numa_env struct

In reply to Wanpeng Li
sched/numa: Drop idx field of task_numa_env struct
Commit-ID:  40ea2b42d7c44386cf81d5636d574193da2c8df2
Gitweb:     http://git.kernel.org/tip/40ea2b42d7c44386cf81d5636d574193da2c8df2
Author:     Wanpeng Li <[email protected]>
AuthorDate: Thu, 5 Dec 2013 19:10:17 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 5 Dec 2013 13:38:36 +0100

sched/numa: Drop idx field of task_numa_env struct

Drop unused idx field of task_numa_env struct.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index a566c07..49aa01f 100644
@@ -1037,7 +1037,7 @@ struct task_numa_env {
 
 	struct numa_stats src_stats, dst_stats;
 
-	int imbalance_pct, idx;
+	int imbalance_pct;
 
 	struct task_struct *best_task;
 	long best_imp;