Re: [PATCH] x86/alternatives: Add cond_resched() to text_poke_bp_batch()
From: Steven Rostedt
Date: Sun May 28 2023 - 23:21:43 EST
On Mon, 29 May 2023 11:52:46 +0900
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> wrote:
> > + /*
> > + * Function tracing can enable thousands of places that need to be
> > + * updated. This can take quite some time, and with full kernel debugging
> > + * enabled, this could cause the softlockup watchdog to trigger.
> > + * Add cond_resched() calls to each phase.
> > + */
> > + cond_resched();
>
> Hmm, why don't you put this between the first step (put int3) and the
> second step (put other bytes)? I guess those would takes more time.
Ah you're right. I still want this here to clear the 'need resched'
flag before we start the process, but I did miss one after the first
loop.
Thanks for the review!
-- Steve