Skip to contentSkip to conversation

sched/fair: fix a comment in task_numa_fault()

PATCH RESEND New Yi Wang 2 participants 2 messages Nov 5, 2018 Scheduler

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH RESEND 1/1 sched/fair: fix a comment in task_numa_fault()

Fix the comment in task_numa_fault() to avoid confusing.

---
 kernel/sched/fair.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/fair.c +2 -2
index 908c9cd..6430c0a 100644
@@ -2422,8 +2422,8 @@ void task_numa_fault(int last_cpupid, int mem_node, int pages, int flags)
 		local = 1;
 
 	/*
-	 * Retry task to preferred node migration periodically, in case it
-	 * case it previously failed, or the scheduler moved us.
+	 * Retry to migrate task to preferred node periodically, in case it
+	 * previously failed, or the scheduler moved us.
 	 */
 	if (time_after(jiffies, p->numa_migrate_retry)) {
 		task_numa_placement(p);
Signature · 1 line
1.8.3.1
#1 lore raw

[tip:sched/urgent] sched/fair: Fix a comment in task_numa_fault()

sched/fair: Fix a comment in task_numa_fault()
Commit-ID:  e1ff516a56ad56c476b47795d3811eef79d25fbe
Gitweb:     https://git.kernel.org/tip/e1ff516a56ad56c476b47795d3811eef79d25fbe
Author:     Yi Wang <[email protected]>
AuthorDate: Mon, 5 Nov 2018 08:50:13 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 5 Nov 2018 07:03:59 +0100

sched/fair: Fix a comment in task_numa_fault()

Duplicated 'case it'.

---
 kernel/sched/fair.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/fair.c +2 -2
index ee271bb661cc..3648d0300fdf 100644
@@ -2400,8 +2400,8 @@ void task_numa_fault(int last_cpupid, int mem_node, int pages, int flags)
 		local = 1;
 
 	/*
-	 * Retry task to preferred node migration periodically, in case it
-	 * case it previously failed, or the scheduler moved us.
+	 * Retry to migrate task to preferred node periodically, in case it
+	 * previously failed, or the scheduler moved us.
 	 */
 	if (time_after(jiffies, p->numa_migrate_retry)) {
 		task_numa_placement(p);