Skip to contentSkip to conversation

sched: Fix stale try_invoke_on_locked_down_task comment

PATCH New David Vernet 1 participant 2 messages Dec 30, 2021 – Feb 18, 2022 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: Fix stale try_invoke_on_locked_down_task comment

In 9b3c4ab3045e, try_invoke_on_locked_down_task() was renamed to task_call_func(), and several callers, comments, etc were updated to use the new name and signature. There was one comment in try_to_wake_up() that was missed, and still refers to the old name. This diff corrects that comment to refer to the new name.

Fixes 9b3c4ab3045e ("sched,rcu: Rework try_invoke_on_locked_down_task()")
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
index fe53e510e711..ec78cf2e97f0 100644
@@ -4038,7 +4038,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
 	 * Pairs with the LOCK+smp_mb__after_spinlock() on rq->lock in
 	 * __schedule().  See the comment for smp_mb__after_spinlock().
 	 *
-	 * A similar smb_rmb() lives in try_invoke_on_locked_down_task().
+	 * A similar smb_rmb() lives in task_call_func().
 	 */
 	smp_rmb();
 	if (READ_ONCE(p->on_rq) && ttwu_runnable(p, wake_flags))
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 sched: Fix stale try_invoke_on_locked_down_task comment

In 9b3c4ab3045e, try_invoke_on_locked_down_task() was renamed to task_call_func(), and several callers, comments, etc were updated to use the new name and signature. There was one comment in try_to_wake_up() that was missed, and still refers to the old name. This diff corrects that comment to refer to the new name.

Fixes 9b3c4ab3045e ("sched,rcu: Rework try_invoke_on_locked_down_task()")
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
index 1e08b02e0cd5..d76e3da0d7d6 100644
@@ -4042,7 +4042,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
 	 * Pairs with the LOCK+smp_mb__after_spinlock() on rq->lock in
 	 * __schedule().  See the comment for smp_mb__after_spinlock().
 	 *
-	 * A similar smb_rmb() lives in try_invoke_on_locked_down_task().
+	 * A similar smb_rmb() lives in task_call_func().
 	 */
 	smp_rmb();
 	if (READ_ONCE(p->on_rq) && ttwu_runnable(p, wake_flags))
Signature · 1 line
2.30.2