Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp932078ybt; Tue, 7 Jul 2020 03:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHFdSAiWfvdsMHzaxpypg9jeZMLww4XtutwZchRIqlvHGRer77ierMrN5QKleSpiTv3Guy X-Received: by 2002:a05:6402:3064:: with SMTP id bs4mr61995238edb.350.1594119195465; Tue, 07 Jul 2020 03:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594119195; cv=none; d=google.com; s=arc-20160816; b=jvwrkCU7zmo0tbAEZ5T3UTdhl+yhgGZPejyyjI1Ti+mtJV4qccEbRhBrg4LY3ViSXp HvTcMbobnz84ZU7gmYKemRbBJrpMDDbbpuiuTdAEVEGXsKtcvjA+/Zm47+So+M0Gr3QW tZLApdo48NCn7icik8hCxKKKX8sWBv4h7XycbFYVxohjWuCIiSwnIkMCPPAuY8Zien3k PpKguiOhAYWHEU+Tbmp9MMT1LBrChemGxpa/7Gjw4h0nA+A3mw++y+Wh3PzanGJjdA2h XurT6TsnM5Pgf/680lRJNRe+4hDJoVfb13QSe+sOFrLHj4XXplydQkL6KmSVgwLEcv4j 9nKg== 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=BaanpUMDwLaO5o0exa4logHS2mJcQY4S0PQUqJkXUGU=; b=x4iSG5NXNuKYuRI5FdAQEUw0fsX6j+nYYJGBf5C4c7/H9tW3SJYinLaXTr3m7MDj8m eX9VYxe1c+lzr+WG9IWOrNgFeJscU3Arxd6ngXMIpiEKrLK8Khiaho9uIazmG9WKp81F sQhJmyaKTvfj7jwCgNIhlSHU5PdvClyjC0qssfHde20eveJbRdKrw6wGdvW3BHaz+szc p8Lz+FIa0Sz/SVRw/H+/bnyIcnuQXuBMqb824D4Do3pyUv5CYql18FtPgrZfTDDBktoB y3f+MGVrLoZSMci5/WBQ+oPznOqg+0aGgmhGV2tlJrkKankMT4CQJKL8nob94BHvN3N3 K2og== 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 p8si13632243ejf.634.2020.07.07.03.52.51; Tue, 07 Jul 2020 03:53: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 S1727827AbgGGKwL (ORCPT + 99 others); Tue, 7 Jul 2020 06:52:11 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:47357 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGGKwL (ORCPT ); Tue, 7 Jul 2020 06:52:11 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R451e4;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=16;SR=0;TI=SMTPD_---0U20Cnyd_1594119126; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U20Cnyd_1594119126) by smtp.aliyun-inc.com(127.0.0.1); Tue, 07 Jul 2020 18:52:06 +0800 Subject: Re: [PATCH v14 07/20] mm/thp: narrow lru locking To: Matthew Wilcox Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, yang.shi@linux.alibaba.com, hannes@cmpxchg.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com References: <1593752873-4493-1-git-send-email-alex.shi@linux.alibaba.com> <1593752873-4493-8-git-send-email-alex.shi@linux.alibaba.com> <124eeef1-ff2b-609e-3bf6-a118100c3f2a@linux.alibaba.com> <20200706113513.GY25523@casper.infradead.org> From: Alex Shi Message-ID: Date: Tue, 7 Jul 2020 18:51:36 +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: <20200706113513.GY25523@casper.infradead.org> 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/7/6 下午7:35, Matthew Wilcox 写道: >> Would you like to give some comments or share your concern of this patchset, >> specialy for THP part? > I don't have the brain space to understand this patch set fully at > the moment. I'll note that the realtime folks are doing their best to > stamp out users of local_irq_disable(), so they won't be pleased to see > you adding a new one. Also, you removed the comment explaining why the > lock needed to be taken. > Hi Matthew, Thanks for response! As to the local_irq_disable(), we could use local_irq_save(), but Hugh Dickin suggest it's not necessary here. Also there are still much local_irq_disable() in code. Hope it would be a big trouble for only one extra. yes, The lru_lock comments is a bit early to remove, that should do in next TestClearPageLRU part. but since it would be changed soon. It won't be a critical thing. Anyway I can change it to back in next version. Thanks Alex