On Fri, 20 Dec 2013, Dave Chinner wrote: > > Moving the code is IMHO the simplest solution. count_vm_events > > will have to disable interrupts on platforms that do not support fast RMV > > operations otherwise. > > If count_vm_events requires irqs to be disabled to behave correctly, > then putting __count_vm_events under a spin lock is still not irq > safe. Either way, this isn't in a performance critical path, so I'd > much prefer the simpler, safer option be used rather than leave a > landmine for other unsuspecting developers.
What we need is just preempt safeness. But there are no operations that are just preempt safe and not interrupt safe (operations were removed since seen as too excessive). So we fall back to interrupt safe. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/