Skip to content

Commit ea6eed9

Browse files
committed
rcu-tasks: Convert sleeps to idle priority
This commit converts the long-standing schedule_timeout_interruptible() and schedule_timeout_uninterruptible() calls used by the various Tasks RCU's grace-period kthreads to schedule_timeout_idle(). This conversion avoids polluting the load-average with Tasks-RCU-related sleeping. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 9ebcfad commit ea6eed9

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
@@ -205,7 +205,7 @@ static int __noreturn rcu_tasks_kthread(void *arg)
205205
if (!rtp->cbs_head) {
206206
WARN_ON(signal_pending(current));
207207
set_tasks_gp_state(rtp, RTGS_WAIT_WAIT_CBS);
208-
schedule_timeout_interruptible(HZ/10);
208+
schedule_timeout_idle(HZ/10);
209209
}
210210
continue;
211211
}
@@ -227,7 +227,7 @@ static int __noreturn rcu_tasks_kthread(void *arg)
227227
cond_resched();
228228
}
229229
/* Paranoid sleep to keep this from entering a tight loop */
230-
schedule_timeout_uninterruptible(HZ/10);
230+
schedule_timeout_idle(HZ/10);
231231

232232
set_tasks_gp_state(rtp, RTGS_WAIT_CBS);
233233
}
@@ -336,7 +336,7 @@ static void rcu_tasks_wait_gp(struct rcu_tasks *rtp)
336336

337337
/* Slowly back off waiting for holdouts */
338338
set_tasks_gp_state(rtp, RTGS_WAIT_SCAN_HOLDOUTS);
339-
schedule_timeout_interruptible(HZ/fract);
339+
schedule_timeout_idle(HZ/fract);
340340

341341
if (fract > 1)
342342
fract--;

0 commit comments

Comments
 (0)