[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9379a2c2-d791-2f2a-9019-2ff091dac5db@suse.cz>
Date: Wed, 7 Nov 2018 09:57:51 +0100
From: Vlastimil Babka <vbabka@...e.cz>
To: Arun KS <arunks@...eaurora.org>, akpm@...ux-foundation.org,
keescook@...omium.org, khlebnikov@...dex-team.ru,
minchan@...nel.org, mhocko@...nel.org, osalvador@...e.de,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: getarunks@...il.com
Subject: Re: [PATCH v2 2/4] mm: Convert zone->managed_pages to atomic variable
On 11/6/18 5:21 PM, Arun KS wrote:
> totalram_pages, zone->managed_pages and totalhigh_pages updates
> are protected by managed_page_count_lock, but readers never care
> about it. Convert these variables to atomic to avoid readers
> potentially seeing a store tear.
>
> This patch converts zone->managed_pages. Subsequent patches will
> convert totalram_panges, totalhigh_pages and eventually
> managed_page_count_lock will be removed.
>
> Suggested-by: Michal Hocko <mhocko@...e.com>
> Suggested-by: Vlastimil Babka <vbabka@...e.cz>
> Signed-off-by: Arun KS <arunks@...eaurora.org>
> Reviewed-by: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
> Acked-by: Michal Hocko <mhocko@...e.com>
Acked-by: Vlastimil Babka <vbabka@...e.cz>
Powered by blists - more mailing lists