We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f6ae44 commit d3bc236Copy full SHA for d3bc236
mm/vmstat.c
@@ -321,9 +321,12 @@ static inline void mod_state(struct zone *zone,
321
/*
322
* The fetching of the stat_threshold is racy. We may apply
323
* a counter threshold to the wrong the cpu if we get
324
- * rescheduled while executing here. However, the following
325
- * will apply the threshold again and therefore bring the
326
- * counter under the threshold.
+ * rescheduled while executing here. However, the next
+ * counter update will apply the threshold again and
+ * therefore bring the counter under the threshold again.
327
+ *
328
+ * Most of the time the thresholds are the same anyways
329
+ * for all cpus in a zone.
330
*/
331
t = this_cpu_read(pcp->stat_threshold);
332
0 commit comments