Messages in this thread | | | Date | Thu, 8 Mar 2012 14:40:53 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: [patch 1/2] mm, counters: remove task argument to sync_mm_rss and __sync_task_rss_stat |
| |
On Tue, 6 Mar 2012 19:21:39 -0800 (PST) David Rientjes <rientjes@google.com> 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@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
| |