Re: [PATCH] softirq: Preserve interrupt context during IRQ exit
From: Karl Mehltretter
Date: Thu Sep 03 2026 - 12:23:17 EST
On Thu, Sep 03, 2026 at 02:20:17PM +0100, Sebastian Andrzej Siewior wrote:
> On 2026-09-03 13:27:37 [+0200], Karl Mehltretter wrote:
> > __irq_exit_rcu() drops HARDIRQ_OFFSET before deferred hrtimer rearm,
> > softirq dispatch, and timersd wakeup. This work is still on the IRQ
> > return path, but in_task() reports task context.
>
> Is this new? I don't remember seeing this before.
>
> Sebastian
irq_exit() dropped the hardirq count before invoking
softirqs in v2.6.12-rc2, the beginning of git history.
The newer additions to that window are the timersd wakeup added by
49a17639508c and the deferred hrtimer-rearm hook added by
7e641e52cf5f.
Thanks,
Karl