Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1102418pxa; Thu, 13 Aug 2020 00:00:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk4ZfeL5lSr8LJ/F7+wQGxr6US3IxNpA3Mr3dalREVVjqptXwKCNOk9hTDXMdLE+wiw94n X-Received: by 2002:a17:906:3993:: with SMTP id h19mr3532284eje.111.1597302015503; Thu, 13 Aug 2020 00:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597302015; cv=none; d=google.com; s=arc-20160816; b=eqI/+FD2YV47OXr7qGX4ArbJ4gJDmVPfc5EPjsPdW2nFls867Dv6GIFmImaaJD1Q6d svA9M4jvOoqRCvGfV2296gACvN3y4R5gvrFr6rPaNuhevFCJCeaJQd4zuDoIYlvp8CGb VlGVZU7R8iTBMSZT/VjkMnndGLYjcerplgMK/OfG1BD2bakBYNpxzZ6wlElRKq/FOH3J SYLgTh5NTH9mEQvQQL96Hx4gAKoHTrJjAbvO/ykzpG2cFQO05+xvhWg20WBFh200o0vT ZdET/nksmcfnBUtdxEL4YJIHvZpvO9EeE8xRcnkv4W2SZ65jKg6bjWQtMTZUVz7XI8R6 h1vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=V6YVrZrQjJoMy0ApoQKish4nmHPyIFlDtcs+sVBLq0s=; b=jdA4D39md/nc3FUOoEZEUzk7k8n7xlemMy9aw/D5U0xur2SiUf11sQbbS7VItJwgYt iIz9bWDG7LMySI+7QHj+Q3jw3XfRSHpOD+rI/by4/jOSP1g+bptNUF2i+aZFihLW5cvq 0jzAx/8r9nUkeq3r+N4ZLVzd04SdPxqoycLOTqrh2jsJk0pxVDd+n9feFgqygKJ4qw/P 6uxF53P/IS8c67ZVRXz3cH3VmLvQ/tbcEHnkk7BUqB4HZKFxDkIxd+SGV6UDIjNzlSf+ R7IWrPXqpVjN6eHSX1pAKDsVzB2gbvChN89SQRaNZhPOniolHpxu09oBFRiJNy42ndpV p51w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si2610361ejd.62.2020.08.12.23.59.53; Thu, 13 Aug 2020 00:00:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726486AbgHMG5L (ORCPT + 99 others); Thu, 13 Aug 2020 02:57:11 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:41935 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbgHMG5L (ORCPT ); Thu, 13 Aug 2020 02:57:11 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04397;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0U5dLrE0_1597301826; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U5dLrE0_1597301826) by smtp.aliyun-inc.com(127.0.0.1); Thu, 13 Aug 2020 14:57:08 +0800 Subject: Re: [RFC PATCH 1/3] mm: Drop locked from isolate_migratepages_block To: Alexander Duyck Cc: yang.shi@linux.alibaba.com, lkp@intel.com, rong.a.chen@intel.com, khlebnikov@yandex-team.ru, kirill@shutemov.name, hughd@google.com, linux-kernel@vger.kernel.org, daniel.m.jordan@oracle.com, linux-mm@kvack.org, shakeelb@google.com, willy@infradead.org, hannes@cmpxchg.org, tj@kernel.org, cgroups@vger.kernel.org, akpm@linux-foundation.org, richard.weiyang@gmail.com, mgorman@techsingularity.net, iamjoonsoo.kim@lge.com References: <20200813035100.13054.25671.stgit@localhost.localdomain> <20200813040224.13054.96724.stgit@localhost.localdomain> From: Alex Shi Message-ID: <8ea9e186-b223-fb1b-5c82-2aa43c5e9f10@linux.alibaba.com> Date: Thu, 13 Aug 2020 14:56:30 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200813040224.13054.96724.stgit@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/8/13 下午12:02, Alexander Duyck 写道: > From: Alexander Duyck > > 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 > --- > 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?