Re: [PATCH] softirq: Preserve interrupt context during IRQ exit

From: Karl Mehltretter

Date: Fri Sep 04 2026 - 12:45:31 EST


On Thu, Sep 03, 2026 at 05:22:21PM +0100, Frederic Weisbecker wrote:
> > + if (softirq_count() == SOFTIRQ_OFFSET)
>
> Any other value should be forbidden here.
> It should just warn.

> > +
> > + if (softirq_count() == SOFTIRQ_OFFSET)
> > + lockdep_softirqs_on(_RET_IP_);
>
> Same here, you should warn if softirq_count() != SOFTIRQ_OFFSET
>

Good point! I'll send a v2.

Thanks,
Karl