Re: [RFC] sched,livepatch: call klp_try_switch_task in __cond_resched

From: Peter Zijlstra
Date: Mon May 09 2022 - 03:25:59 EST


On Sat, May 07, 2022 at 10:46:28AM -0700, Song Liu wrote:
> Busy kernel threads may block the transition of livepatch. Call
> klp_try_switch_task from __cond_resched to make the transition easier.

What will a PREEMPT=y kernel do? How is it not a problem there, and if
it is, this will not help that.

That is; I don't think this can be right.