Re: [PATCH 2/2] sched: Move task_mm_cid_work to RCU callback

From: Gabriele Monaco
Date: Wed Dec 04 2024 - 03:12:10 EST



On Tue, 2024-12-03 at 10:00 -0500, Joel Fernandes wrote:
>
> Also there is no guarantee that RCU callback will run within a thread
> context (example, some configurations run it in softirq). Further,
> call_rcu() usage as shown in this patch can also delay callback runs
> by seconds (with RCU_LAZY enabled).
>
> See also #5 in checklist: https://docs.kernel.org/RCU/checklist.html
>

Thanks for the tips, I get the RCU callbacks are clearly not the right
place where to put this function.
I'm working on a V2 where the same tick is scheduling a new work_struct
in the mm_struct instead, let's see where that brings.

Thanks all for the constructive comments.
Gabriele