Re: [PATCH v12 2/3] sched: Move task_mm_cid_work to mm work_struct
From: Peter Zijlstra
Date: Wed Apr 09 2025 - 10:05:45 EST
On Tue, Mar 11, 2025 at 07:28:45AM +0100, Gabriele Monaco wrote:
> +static inline void rseq_preempt_from_tick(struct task_struct *t)
> +{
> + u64 rtime = t->se.sum_exec_runtime - t->se.prev_sum_exec_runtime;
> +
> + if (rtime > RSEQ_UNPREEMPTED_THRESHOLD)
> + rseq_preempt(t);
> +}
This confused me.
The goal seems to be to tickle __rseq_handle_notify_resume() so it'll
end up queueing that work thing. But why do we want to set PREEMPT_BIT
here?