Re: [PATCH v2 4/7] mm, page_alloc: simplify pageset_update()

2020-10-22 Thread Oscar Salvador
On Thu, Oct 08, 2020 at 01:41:58PM +0200, Vlastimil Babka wrote: > pageset_update() attempts to update pcplist's high and batch values in a way > that readers don't observe batch > high. It uses smp_wmb() to order the > updates > in a way to achieve this. However, without proper pairing read

[PATCH v2 4/7] mm, page_alloc: simplify pageset_update()

2020-10-08 Thread Vlastimil Babka
pageset_update() attempts to update pcplist's high and batch values in a way that readers don't observe batch > high. It uses smp_wmb() to order the updates in a way to achieve this. However, without proper pairing read barriers in readers this guarantee doesn't hold, and there are no such