Re: [patch 1/2] mm, counters: remove task argument to sync_mm_rssand __sync_task_rss_stat

From: KAMEZAWA Hiroyuki
Date: Thu Mar 08 2012 - 00:42:23 EST


On Tue, 6 Mar 2012 19:21:39 -0800 (PST)
David Rientjes <rientjes@xxxxxxxxxx> wrote:

> sync_mm_rss() can only be used for current to avoid race conditions in
> iterating and clearing its per-task counters. Remove the task argument
> for it and its helper function, __sync_task_rss_stat(), to avoid thinking
> it can be used safely for anything other than current.
>
> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/