Linus Torvalds writes: (Summary)
It does kind of break the whole point of percpu operations, and I
would like to point out that I find things like
would like to point out that I find things like
static DEFINE_PER_CPU(u64, running_sample_length);
static DEFINE_PER_CPU(u64, running_sample_length);
which is preceded by a comment that talks about how this is accessed from critical code and explicitly mentions NMI's.
from critical code and explicitly mentions NMI's.
So protection them against interrupts isn't actually going to *fix* anything.
would like to point out that I find things like
static DEFINE_PER_CPU(u64, running_sample_length);
static DEFINE_PER_CPU(u64, running_sample_length);
which is preceded by a comment that talks about how this is accessed from critical code and explicitly mentions NMI's.
from critical code and explicitly mentions NMI's.
So protection them against interrupts isn't actually going to *fix* anything.