Re: [PATCH v21 12/19] mm/mlock: remove lru_lock on TestClearPageMlocked

2020-11-11 Thread Vlastimil Babka
On 11/5/20 9:55 AM, Alex Shi wrote: In the func munlock_vma_page, comments mentained lru_lock needed for serialization with split_huge_pages. But the page must be PageLocked as well as pages in split_huge_page series funcs. Thus the PageLocked is enough to serialize both funcs. Further more, Hug

[PATCH v21 12/19] mm/mlock: remove lru_lock on TestClearPageMlocked

2020-11-05 Thread Alex Shi
In the func munlock_vma_page, comments mentained lru_lock needed for serialization with split_huge_pages. But the page must be PageLocked as well as pages in split_huge_page series funcs. Thus the PageLocked is enough to serialize both funcs. Further more, Hugh Dickins pointed: before splitting in