Skip to content

Commit 8af9e2c

Browse files
committed
rcu-tasks: Update comments to cond_resched_tasks_rcu_qs()
The cond_resched_rcu_qs() function no longer exists, despite being mentioned several times in kernel/rcu/tasks.h. This commit therefore updates it to the current cond_resched_tasks_rcu_qs(). Reported-by: Neeraj Upadhyay <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 46aa886 commit 8af9e2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/rcu/tasks.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ static void rcu_tasks_wait_gp(struct rcu_tasks *rtp)
368368
////////////////////////////////////////////////////////////////////////
369369
//
370370
// Simple variant of RCU whose quiescent states are voluntary context
371-
// switch, cond_resched_rcu_qs(), user-space execution, and idle.
371+
// switch, cond_resched_tasks_rcu_qs(), user-space execution, and idle.
372372
// As such, grace periods can take one good long time. There are no
373373
// read-side primitives similar to rcu_read_lock() and rcu_read_unlock()
374374
// because this implementation is intended to get the system into a safe
@@ -539,7 +539,7 @@ DEFINE_RCU_TASKS(rcu_tasks, rcu_tasks_wait_gp, call_rcu_tasks, "RCU Tasks");
539539
* period elapses, in other words after all currently executing RCU
540540
* read-side critical sections have completed. call_rcu_tasks() assumes
541541
* that the read-side critical sections end at a voluntary context
542-
* switch (not a preemption!), cond_resched_rcu_qs(), entry into idle,
542+
* switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle,
543543
* or transition to usermode execution. As such, there are no read-side
544544
* primitives analogous to rcu_read_lock() and rcu_read_unlock() because
545545
* this primitive is intended to determine that all tasks have passed
@@ -677,7 +677,7 @@ DEFINE_RCU_TASKS(rcu_tasks_rude, rcu_tasks_rude_wait_gp, call_rcu_tasks_rude,
677677
* period elapses, in other words after all currently executing RCU
678678
* read-side critical sections have completed. call_rcu_tasks_rude()
679679
* assumes that the read-side critical sections end at context switch,
680-
* cond_resched_rcu_qs(), or transition to usermode execution (as
680+
* cond_resched_tasks_rcu_qs(), or transition to usermode execution (as
681681
* usermode execution is schedulable). As such, there are no read-side
682682
* primitives analogous to rcu_read_lock() and rcu_read_unlock() because
683683
* this primitive is intended to determine that all tasks have passed

0 commit comments

Comments
 (0)