Re: [POC 1/6] irq & spin_lock: Add counted interrupt disabling/enabling
From: Peter Zijlstra
Date: Wed Oct 23 2024 - 15:52:35 EST
On Wed, Oct 23, 2024 at 09:34:27PM +0200, Thomas Gleixner wrote:
> On Thu, Oct 17 2024 at 22:51, Boqun Feng wrote:
> Ideally you make that part of the preemption count. Bit 24-30 are free
> (or we can move them around as needed). That's deep enough and you get
> the debug sanity checking of the preemption counter for free (might need
> some extra debug for this...)
Urgh, so we've already had trouble that nested spinlocks bust through
the 0xff preempt mask (because lunacy). You sure you want to be this
stingy with bits?
We still have a few holes in pcpu_hot iirc.