lkml.org 
[lkml]   [2008]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 04/09] memcg: make zone_reclaim_stat
Date
> KOSAKI Motohiro wrote:
>
> > @@ -172,6 +173,10 @@ void activate_page(struct page *page)
> >
> > reclaim_stat->recent_rotated[!!file]++;
> > reclaim_stat->recent_scanned[!!file]++;
> > +
> > + memcg_reclaim_stat = mem_cgroup_get_reclaim_stat_by_page(page);
> > + memcg_reclaim_stat->recent_rotated[!!file]++;
> > + memcg_reclaim_stat->recent_scanned[!!file]++;
>
> Also, manipulation of the zone based reclaim_stats happens
> under the lru lock.
>
> What protects the memcg reclaim stat?

memcg zone and memcg zone_reclaim_stat also use zone->lru_lock.






\
 
 \ /
  Last update: 2008-12-01 01:53    [W:0.038 / U:0.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site