在 2020/8/13 下午12:02, Alexander Duyck 写道: > From: Alexander Duyck <[email protected]> > > 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 <[email protected]> > --- > 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?
- Re: [PATCH v17 14/21] mm/compaction: do page isolation fir... Alexander Duyck
- Re: [PATCH v17 14/21] mm/compaction: do page isolatio... Alex Shi
- Re: [PATCH v17 14/21] mm/compaction: do page isol... Alexander Duyck
- [RFC PATCH 0/3] Re: [PATCH v17 14/21] mm/compacti... Alexander Duyck
- [RFC PATCH 2/3] mm: Drop use of test_and_set_... Alexander Duyck
- [RFC PATCH 3/3] mm: Identify compound pages s... Alexander Duyck
- [RFC PATCH 1/3] mm: Drop locked from isolate_... Alexander Duyck
- Re: [RFC PATCH 1/3] mm: Drop locked from ... Alex Shi
- Re: [RFC PATCH 1/3] mm: Drop locked ... Alexander Duyck
- Re: [RFC PATCH 1/3] mm: Drop loc... Alex Shi
- Re: [RFC PATCH 1/3] mm: Drop locked from ... Alex Shi
- Re: [RFC PATCH 1/3] mm: Drop locked ... Alexander Duyck

