Re: [PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

2020-09-22 Thread Alex Shi
在 2020/9/22 下午2:13, Hugh Dickins 写道: > On Mon, 24 Aug 2020, Alex Shi wrote: > >> In the func munlock_vma_page, the page must be PageLocked as well as >> pages in split_huge_page series funcs. Thus the PageLocked is enough >> to serialize both funcs. >> >> So we could relief the TestClearPageMlo

Re: [PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

2020-09-21 Thread Hugh Dickins
On Mon, 24 Aug 2020, Alex Shi wrote: > In the func munlock_vma_page, the page must be PageLocked as well as > pages in split_huge_page series funcs. Thus the PageLocked is enough > to serialize both funcs. > > So we could relief the TestClearPageMlocked/hpage_nr_pages which are not > necessary un

Re: [PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

2020-08-25 Thread Alex Shi
LKP reported a preemptiable issue on this patch. update and refresh the commit log. >From f18e8c87a045bbb8040006b6816ded1f55fa6f9c Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Sat, 25 Jul 2020 22:31:03 +0800 Subject: [PATCH] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

[PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page

2020-08-24 Thread Alex Shi
In the func munlock_vma_page, the page must be PageLocked as well as pages in split_huge_page series funcs. Thus the PageLocked is enough to serialize both funcs. So we could relief the TestClearPageMlocked/hpage_nr_pages which are not necessary under lru lock. As to another munlock func __munloc