[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH] mm: convert totalram_pages, totalhigh_pages and managed_pages to atomic.
- To: mhocko@xxxxxxxxxx
- From: Arun Sudhilal <getarunks@xxxxxxxxx>
- Date: Tue, 23 Oct 2018 10:16:51 +0530
- Cc: snitzer@xxxxxxxxxx, benh@xxxxxxxxxxxxxxxxxxx, kemi.wang@xxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, bfields@xxxxxxxxxxxx, linux-sctp@xxxxxxxxxxxxxxx, paulus@xxxxxxxxx, pavel@xxxxxx, cl@xxxxxxxxx, kys@xxxxxxxxxxxxx, sumit.semwal@xxxxxxxxxx, David1.Zhou@xxxxxxx, ptesarik@xxxxxxxx, mpe@xxxxxxxxxxxxxx, ceph-devel@xxxxxxxxxxxxxxx, jejb@xxxxxxxxxxxxxxxx, kasan-dev@xxxxxxxxxxxxxxxx, marcos.souza.org@xxxxxxxxx, steven.hill@xxxxxxxxxx, rientjes@xxxxxxxxxx, anthony.yznaga@xxxxxxxxxx, neelx@xxxxxxxxxx, guro@xxxxxx, len.brown@xxxxxxxxx, linux-pm@xxxxxxxxxxxxxxx, vbabka@xxxxxxx, linux-um@xxxxxxxxxxxxxxxxxxx, rppt@xxxxxxxxxxxxxxxxxx, viro@xxxxxxxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, trond.myklebust@xxxxxxxxxxxxxxx, anton@xxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, malat@xxxxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, rdunlap@xxxxxxxxxxxxx, rjw@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, cyrilbur@xxxxxxxxx, arve@xxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, jrdr.linux@xxxxxxxxx, dmitry.kasatkin@xxxxxxxxx, alexander.deucher@xxxxxxx, arunks@xxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, andrew-ct.chen@xxxxxxxxxxxx, gustavo@xxxxxxxxxxxxxx, airlied@xxxxxxxx, dm-devel@xxxxxxxxxx, namit@xxxxxxxxxx, osandov@xxxxxx, agk@xxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, sthemmin@xxxxxxxxxxxxx, intel-gfx@xxxxxxxxxxxxxxxxxxxxx, deller@xxxxxx, hughd@xxxxxxxxxx, mcgrof@xxxxxxxxxx, coreteam@xxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxxxx, aryabinin@xxxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, yuehaibing@xxxxxxxxxx, tkjos@xxxxxxxxxxx, pombredanne@xxxxxxxx, jani.nikula@xxxxxxxxxxxxxxx, jia.he@xxxxxxxxxxxxxxxx, Tejun Heo <tj@xxxxxxxxxx>, shakeelb@xxxxxxxxxx, houlong.wei@xxxxxxxxxxxx, devel@xxxxxxxxxxxxxxxxxxxxxx, boris.ostrovsky@xxxxxxxxxx, maco@xxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, khalid@xxxxxxxxxxxxxx, oded.gabbay@xxxxxxxxx, linaro-mm-sig@xxxxxxxxxxxxxxxx, linux-ntfs-dev@xxxxxxxxxxxxxxxxxxxxx, corbet@xxxxxxx, fw@xxxxxxxxx, anna.schumaker@xxxxxxxxxx, penberg@xxxxxxxxxx, minchan@xxxxxxxxxx, ebiederm@xxxxxxxxxxxx, aneesh.kumar@xxxxxxxxxxxxx, schwidefsky@xxxxxxxxxx, iamjoonsoo.kim@xxxxxxx, kstewart@xxxxxxxxxxxxxxxxxxx, marcelo.leitner@xxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, penguin-kernel@xxxxxxxxxxxxxxxxxxx, joonas.lahtinen@xxxxxxxxxxxxxxx, heiko.carstens@xxxxxxxxxx, stefan@xxxxxxxx, jmorris@xxxxxxxxx, netdev@xxxxxxxxxxxxxxx, amd-gfx@xxxxxxxxxxxxxxxxxxxxx, jack@xxxxxxx, alexander.h.duyck@xxxxxxxxxxxxxxx, gerrit@xxxxxxxxxxxxxx, andriy.shevchenko@xxxxxxxxxxxxxxx, miklos@xxxxxxxxxx, david@xxxxxxxxxx, willy@xxxxxxxxxxxxx, khlebnikov@xxxxxxxxxxxxxx, matthew.auld@xxxxxxxxx, ren_guo@xxxxxxxxx, ying.huang@xxxxxxxxx, kuznet@xxxxxxxxxxxxx, idryomov@xxxxxxxxx, adobriyan@xxxxxxxxx, pablo@xxxxxxxxxxxxx, serge@xxxxxxxxxx, keescook@xxxxxxxxxxxx, arnd@xxxxxxxx, haiyangz@xxxxxxxxxxxxx, broonie@xxxxxxxxxx, bp@xxxxxxxxx, rodrigo.vivi@xxxxxxxxx, dan.j.williams@xxxxxxxxx, mchehab@xxxxxxxxxx, ddstreet@xxxxxxxx, osalvador@xxxxxxx, linux-nfs@xxxxxxxxxxxxxxx, nhorman@xxxxxxxxxxxxx, tvrtko.ursulin@xxxxxxxxx, jlayton@xxxxxxxxxx, edumazet@xxxxxxxxxx, jeyu@xxxxxxxxxx, joe@xxxxxxxxxxx, davem@xxxxxxxxxxxxx, kirill.shutemov@xxxxxxxxxxxxxxx, minghsiu.tsai@xxxxxxxxxxxx, christian.koenig@xxxxxxx, pv-drivers@xxxxxxxxxx, bigeasy@xxxxxxxxxxxxx, ruscur@xxxxxxxxxx, chris@xxxxxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, glider@xxxxxxxxxx, hpa@xxxxxxxxx, cpandya@xxxxxxxxxxxxxx, devel@xxxxxxxxxxxxxxxxxxxx, zyan@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, sage@xxxxxxxxxx, dccp@xxxxxxxxxxxxxxx, richard@xxxxxx, sjenning@xxxxxxxxxx, x86@xxxxxxxxxx, mingo@xxxxxxxxxx, labbott@xxxxxxxxxx, zohar@xxxxxxxxxxxxxxxxxx, jdike@xxxxxxxxxxx, pavel.tatashin@xxxxxxxxxxxxx, jannh@xxxxxxxxxx, xdeguillard@xxxxxxxxxx, hannes@xxxxxxxxxxx, jglisse@xxxxxxxxxx, ktkhai@xxxxxxxxxxxxx, linux-mediatek@xxxxxxxxxxxxxxxxxxx, matthias.bgg@xxxxxxxxx, tiffany.lin@xxxxxxxxxxxx, linux-integrity@xxxxxxxxxxxxxxx, dvyukov@xxxxxxxxxx, jgross@xxxxxxxx, yang.shi@xxxxxxxxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, vyasevich@xxxxxxxxx, linux-decnet-user@xxxxxxxxxxxxxxxxxxxxx, kexec@xxxxxxxxxxxxxxxxxxx, linux-security-module@xxxxxxxxxxxxxxx, tzimmermann@xxxxxxx, mika.kuoppala@xxxxxxxxxxxxxxx, mgorman@xxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 23 Oct 2018 04:53:52 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, Oct 22, 2018 at 11:41 PM Michal Hocko <mhocko@xxxxxxxxxx> wrote:
>
> On Mon 22-10-18 22:53:22, Arun KS wrote:
> > Remove managed_page_count_lock spinlock and instead use atomic
> > variables.
>
Hello Michal,
> I assume this has been auto-generated. If yes, it would be better to
> mention the script so that people can review it and regenerate for
> comparision. Such a large change is hard to review manually.
Changes were made partially with script. For totalram_pages and
totalhigh_pages,
find dir -type f -exec sed -i
's/totalram_pages/atomic_long_read(\&totalram_pages)/g' {} \;
find dir -type f -exec sed -i
's/totalhigh_pages/atomic_long_read(\&totalhigh_pages)/g' {} \;
For managed_pages it was mostly manual edits after using,
find mm/ -type f -exec sed -i
's/zone->managed_pages/atomic_long_read(\&zone->managed_pages)/g' {}
\;
Regards,
Arun
> --
> Michal Hocko
> SUSE Labs
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|