On Wed, 2008-10-22 at 13:05 -0600, Matthew Wilcox wrote:
Gah, I looked at it again, and that #ifdef isn't only to select between
LOCK_CONTENDED and not, but we can't actually have the re-enable for
anything lockdep.
So I was wrong.
Right, not sure how this maze is done.
The thing is, with spin_lock_irq() you know the irq state and can do the
enable unconditionally - then again, with ticket locks we cannot do it
at all.
The _flags() version needs the flags to see if irqs was enabled before
we entered the op, if it wasn't we cannot go around enabling them.
Doubt it.. dunno.. personally I'd rather see softirqs die sooner rather
than later.
--