Thread (100 messages) 100 messages, 5 authors, 2020-08-18

Re: [RFC PATCH 1/3] mm: Drop locked from isolate_migratepages_block

From: Alex Shi <hidden>
Date: 2020-08-13 06:57:12
Also in: linux-mm, lkml


在 2020/8/13 下午12:02, Alexander Duyck 写道:
From: Alexander Duyck <alexander.h.duyck-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>

We can drop the need for the locked variable by making use of the
lruvec_holds_page_lru_lock function. By doing this we can avoid some rcu
locking ugliness for the case where the lruvec is still holding the LRU
lock associated with the page. Instead we can just use the lruvec and if it
is NULL we assume the lock was released.

Signed-off-by: Alexander Duyck <alexander.h.duyck-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
 mm/compaction.c |   45 ++++++++++++++++++++-------------------------
 1 file changed, 20 insertions(+), 25 deletions(-)
Thanks a lot!
Don't know if community is ok if we keep the patch following whole patchset alone?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help