On Wed, 4 Aug 2021 18:22:31 +0200 Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote: > no preemption happens here with NEED_RESCHED set. But if interrupts were disabled, how would NEED_RESCHED be set? As soon as you enable interrupts, the interrupt that sets NEED_RESCHED would trigger the preemption. -- Steve