Re: [PATCH v4 02/39] task_work: Fix TWA_NMI_CURRENT race with __schedule()

Peter Zijlstra
2025-01-22T12:23:19Z

On Tue, Jan 21, 2025 at 06:30:54PM -0800, Josh Poimboeuf wrote:

> @@ -109,11 +126,6 @@ int task_work_add(struct task_struct *task, struct callback_head *work,
> case TWA_SIGNAL_NO_IPI:
> __set_notify_signal(task);
> break;
> -#ifdef CONFIG_IRQ_WORK
> - case TWA_NMI_CURRENT:
> - irq_work_queue(this_cpu_ptr(&irq_work_NMI_resume));
> - break;
> -#endif
> default:
> WARN_ON_ONCE(1);
> break;

Shouldn't this go to in the previous patch?