Re: [RFC][PATCH] sched,livepatch: Untangle cond_resched() and live-patching

From
Peter Zijlstra <peterz@infradead.org>
Date
2025-03-26 14:42:21
Also in
lkml
Reply to
Miroslav Benes, 2025-03-26
On Wed, Mar 26, 2025 at 03:37:50PM +0100, Miroslav Benes wrote:
If I remember correctly, we had something like this in the old kGraft 
implementation of the live patching (SUSE way). We exactly had a hook 
somewhere in the kthread freezing code. This looks much cleaner and as far 
as I know the fridge went through improvements recently.
Yeah, I rewrote it a while ago :-)
Peter, so that I understand it correctly... we would rely on all kthreads 
becoming freezable eventually so that both suspend and livepatch benefit. 
Is that what you meant by the above?
Well, IIRC (its been a while already) all kthreads should have a
FREEZABLE already. Things like suspend-to-idle don't hit the hotplug
path at all anymore and everything must freeze, otherwise they fail.

I was more meaning the time-to-freeze; if some kthreads take a long time
to freeze/patch then this would want improving on both ends.
Thread (7 messages) 7 messages, 3 authors, last reply 2025-03-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help