Re: [PATCH v2 6/7] mm, page_alloc: move draining pcplists to page isolation users

2020-10-22 Thread Oscar Salvador
On Thu, Oct 08, 2020 at 01:42:00PM +0200, Vlastimil Babka wrote: > Currently, pcplists are drained during set_migratetype_isolate() which means > once per pageblock processed start_isolate_page_range(). This is somewhat > wasteful. Moreover, the callers might need different guarantees, and the >

[PATCH v2 6/7] mm, page_alloc: move draining pcplists to page isolation users

2020-10-08 Thread Vlastimil Babka
Currently, pcplists are drained during set_migratetype_isolate() which means once per pageblock processed start_isolate_page_range(). This is somewhat wasteful. Moreover, the callers might need different guarantees, and the draining is currently prone to races and does not guarantee that no page