On Wed, Mar 10, 2021 at 06:13:21PM -0800, Mike Kravetz wrote: > from irq context. Changing the check in the code from !in_task to > in_atomic would handle the situations when called with irqs disabled. It does not. local_irq_disable() does not change preempt_count().