Skip to content

Commit 88092d0

Browse files
committed
rcu-tasks: Add a grace-period start time for throttling and debug
This commit adds a place to record the grace-period start in jiffies. This will be used by later commits for debugging purposes and to throttle IPIs early in the grace period. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 43766c3 commit 88092d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/rcu/tasks.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ struct rcu_tasks {
4646
raw_spinlock_t cbs_lock;
4747
int gp_state;
4848
unsigned long gp_jiffies;
49+
unsigned long gp_start;
4950
struct task_struct *kthread_ptr;
5051
rcu_tasks_gp_func_t gp_func;
5152
pregp_func_t pregp_func;
@@ -200,6 +201,7 @@ static int __noreturn rcu_tasks_kthread(void *arg)
200201

201202
// Wait for one grace period.
202203
set_tasks_gp_state(rtp, RTGS_WAIT_GP);
204+
rtp->gp_start = jiffies;
203205
rtp->gp_func(rtp);
204206

205207
/* Invoke the callbacks. */

0 commit comments

Comments
 (0)