Re: [PATCH v5 2/4] mm: convert zone->managed_pages to atomic variable

2018-11-14 Thread Pavel Tatashin
On 18-11-13 12:03:08, 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->

Re: [PATCH v5 2/4] mm: convert zone->managed_pages to atomic variable

2018-11-13 Thread David Hildenbrand
On 13.11.18 07:33, 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->man

[PATCH v5 2/4] mm: convert zone->managed_pages to atomic variable

2018-11-12 Thread Arun KS
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 to