|
@@ -1234,10 +1234,10 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * Has this CPU encountered a cond_resched_rcu_qs() since the
|
|
|
- * beginning of the grace period? For this to be the case,
|
|
|
- * the CPU has to have noticed the current grace period. This
|
|
|
- * might not be the case for nohz_full CPUs looping in the kernel.
|
|
|
+ * Has this CPU encountered a cond_resched() since the beginning
|
|
|
+ * of the grace period? For this to be the case, the CPU has to
|
|
|
+ * have noticed the current grace period. This might not be the
|
|
|
+ * case for nohz_full CPUs looping in the kernel.
|
|
|
*/
|
|
|
jtsq = jiffies_till_sched_qs;
|
|
|
ruqp = per_cpu_ptr(&rcu_dynticks.rcu_urgent_qs, rdp->cpu);
|
|
@@ -2049,7 +2049,7 @@ static bool rcu_gp_init(struct rcu_state *rsp)
|
|
|
rnp->level, rnp->grplo,
|
|
|
rnp->grphi, rnp->qsmask);
|
|
|
raw_spin_unlock_irq_rcu_node(rnp);
|
|
|
- cond_resched_rcu_qs();
|
|
|
+ cond_resched_tasks_rcu_qs();
|
|
|
WRITE_ONCE(rsp->gp_activity, jiffies);
|
|
|
}
|
|
|
|
|
@@ -2151,7 +2151,7 @@ static void rcu_gp_cleanup(struct rcu_state *rsp)
|
|
|
sq = rcu_nocb_gp_get(rnp);
|
|
|
raw_spin_unlock_irq_rcu_node(rnp);
|
|
|
rcu_nocb_gp_cleanup(sq);
|
|
|
- cond_resched_rcu_qs();
|
|
|
+ cond_resched_tasks_rcu_qs();
|
|
|
WRITE_ONCE(rsp->gp_activity, jiffies);
|
|
|
rcu_gp_slow(rsp, gp_cleanup_delay);
|
|
|
}
|
|
@@ -2202,7 +2202,7 @@ static int __noreturn rcu_gp_kthread(void *arg)
|
|
|
/* Locking provides needed memory barrier. */
|
|
|
if (rcu_gp_init(rsp))
|
|
|
break;
|
|
|
- cond_resched_rcu_qs();
|
|
|
+ cond_resched_tasks_rcu_qs();
|
|
|
WRITE_ONCE(rsp->gp_activity, jiffies);
|
|
|
WARN_ON(signal_pending(current));
|
|
|
trace_rcu_grace_period(rsp->name,
|
|
@@ -2247,7 +2247,7 @@ static int __noreturn rcu_gp_kthread(void *arg)
|
|
|
trace_rcu_grace_period(rsp->name,
|
|
|
READ_ONCE(rsp->gpnum),
|
|
|
TPS("fqsend"));
|
|
|
- cond_resched_rcu_qs();
|
|
|
+ cond_resched_tasks_rcu_qs();
|
|
|
WRITE_ONCE(rsp->gp_activity, jiffies);
|
|
|
ret = 0; /* Force full wait till next FQS. */
|
|
|
j = jiffies_till_next_fqs;
|
|
@@ -2260,7 +2260,7 @@ static int __noreturn rcu_gp_kthread(void *arg)
|
|
|
}
|
|
|
} else {
|
|
|
/* Deal with stray signal. */
|
|
|
- cond_resched_rcu_qs();
|
|
|
+ cond_resched_tasks_rcu_qs();
|
|
|
WRITE_ONCE(rsp->gp_activity, jiffies);
|
|
|
WARN_ON(signal_pending(current));
|
|
|
trace_rcu_grace_period(rsp->name,
|
|
@@ -2782,7 +2782,7 @@ static void force_qs_rnp(struct rcu_state *rsp, int (*f)(struct rcu_data *rsp))
|
|
|
struct rcu_node *rnp;
|
|
|
|
|
|
rcu_for_each_leaf_node(rsp, rnp) {
|
|
|
- cond_resched_rcu_qs();
|
|
|
+ cond_resched_tasks_rcu_qs();
|
|
|
mask = 0;
|
|
|
raw_spin_lock_irqsave_rcu_node(rnp, flags);
|
|
|
if (rnp->qsmask == 0) {
|