lkml.org 
[lkml]   [2012]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC][PATCH 5/6] memcg: remove unnecessary memory barrier.
    Now, Used bit and a pointer to memory cgroup are set at once.
    memory barrier for Used bit -> pc->mem_cgroup is not necessary.

    Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    ---
    mm/memcontrol.c | 2 --
    1 files changed, 0 insertions(+), 2 deletions(-)

    diff --git a/mm/memcontrol.c b/mm/memcontrol.c
    index 622fd2e..767bef3 100644
    --- a/mm/memcontrol.c
    +++ b/mm/memcontrol.c
    @@ -1258,8 +1258,6 @@ mem_cgroup_get_reclaim_stat_from_page(struct page *page)
    pc = lookup_page_cgroup(page);
    if (!PageCgroupUsed(pc))
    return NULL;
    - /* Ensure pc's mem_cgroup is visible after reading PCG_USED. */
    - smp_rmb();
    mz = page_cgroup_zoneinfo(pc_to_mem_cgroup(pc), page);
    return &mz->reclaim_stat;
    }
    --
    1.7.4.1



    \
     
     \ /
      Last update: 2012-03-28 13:05    [W:0.021 / U:0.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site