From: Christoph Lameter Date: Thu, 14 Apr 2011 22:21:58 +0000 (-0700) Subject: vmstat: update comment regarding stat_threshold X-Git-Tag: firefly_0821_release~7613^2~1639 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d3bc2367180f7ee6afe4ee6e886bfba3ad4eb290;p=firefly-linux-kernel-4.4.55.git vmstat: update comment regarding stat_threshold Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmstat.c b/mm/vmstat.c index 772b39b87d95..8cb0f0a703e5 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -321,9 +321,12 @@ static inline void mod_state(struct zone *zone, /* * The fetching of the stat_threshold is racy. We may apply * a counter threshold to the wrong the cpu if we get - * rescheduled while executing here. However, the following - * will apply the threshold again and therefore bring the - * 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. + * + * Most of the time the thresholds are the same anyways + * for all cpus in a zone. */ t = this_cpu_read(pcp->stat_threshold);