Skip to content

Commit d3bc236

Browse files
Christoph Lametertorvalds
Christoph Lameter
authored andcommitted
vmstat: update comment regarding stat_threshold
Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9f6ae44 commit d3bc236

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mm/vmstat.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,12 @@ static inline void mod_state(struct zone *zone,
321321
/*
322322
* The fetching of the stat_threshold is racy. We may apply
323323
* 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.
324+
* rescheduled while executing here. However, the next
325+
* counter update will apply the threshold again and
326+
* 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.
327330
*/
328331
t = this_cpu_read(pcp->stat_threshold);
329332

0 commit comments

Comments
 (0)