Re: [PATCH v4 02/39] task_work: Fix TWA_NMI_CURRENT race with __schedule()
From: Peter Zijlstra
Date: Thu Jan 23 2025 - 03:15:43 EST
On Wed, Jan 22, 2025 at 02:14:30PM -0800, Josh Poimboeuf wrote:
> On Wed, Jan 22, 2025 at 01:03:42PM -0800, Josh Poimboeuf wrote:
> > The self-IPI is only needed when the NMI happened in user space, right?
> > Would it make sense to have an optimized version of that?
>
> Actually, maybe not, that could be tricky if the NMI hits in the kernel
> after task work runs.
Right, I was going to say, lets keep this as simple as possible :-)