Re: [RFC 4/9] Atomic reclaim: Save irq flags in vmscan.c

Andi Kleen
2007-08-14T20:45:13Z

> Hmmmm... The spinlock is its own flag.

Yes, but it's not CPU local. Taking the spinlock from another CPU's
interrupt handler is perfectly safe, just not from the local CPU.
If you use the spinlock as flag you would need to lock out everybody.

-Andi