The IRQ disabling/enabling here is unnecessary I think, since setting the flag to false is atomic.