From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Shi Subject: Re: [PATCH v16 20/22] mm/vmscan: use relock for move_pages_to_lru Date: Sat, 18 Jul 2020 22:15:25 +0800 Message-ID: <7176001a-fa58-3281-7c6b-b25eea54bd15@linux.alibaba.com> References: <1594429136-20002-1-git-send-email-alex.shi@linux.alibaba.com> <1594429136-20002-21-git-send-email-alex.shi@linux.alibaba.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: Alexander Duyck Cc: Andrew Morton , Mel Gorman , Tejun Heo , Hugh Dickins , Konstantin Khlebnikov , Daniel Jordan , Yang Shi , Matthew Wilcox , Johannes Weiner , kbuild test robot , linux-mm , LKML , cgroups@vger.kernel.org, Shakeel Butt , Joonsoo Kim , Wei Yang , "Kirill A. Shutemov" , Andrey Ryabinin , Jann Horn 在 2020/7/18 上午5:44, Alexander Duyck 写道: >> if (unlikely(PageCompound(page))) { >> spin_unlock_irq(&lruvec->lru_lock); >> + lruvec = NULL; >> destroy_compound_page(page); >> - spin_lock_irq(&lruvec->lru_lock); >> } else >> list_add(&page->lru, &pages_to_free); >> > It seems like this should just be rolled into patch 19. Otherwise if > you are wanting to consider it as a "further optimization" type patch > you might pull some of the optimizations you were pushing in patch 18 > into this patch as well and just call it out as adding relocks where > there previously were none. This patch is picked from Hugh Dickin's version in my review. It could be fine to have a extra patch which no harm for anyone. :) Thanks Alex