Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp91230pxk; Tue, 22 Sep 2020 19:58:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+otz1+QD5QQC9B72F6+EmcOUKGodmVV0nj+h72J8NHhv1aWKZgLiGcbz6UF+omGCfwgSn X-Received: by 2002:aa7:dc16:: with SMTP id b22mr7301737edu.252.1600829901542; Tue, 22 Sep 2020 19:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600829901; cv=none; d=google.com; s=arc-20160816; b=umILJooCE9zREDIMArvuKjRZV4QINCwLb3IXJc5qLzVHEdQtJXMl+rQQ51CTf6esFk D1yRiL5+7gFrgHYnhuw/roSfzx1OnIOD+8SKCXuS4xz3pHsnVCJnpfimf4sWeb0N1tjY Y85PPai2/0nN34zHFikHhsz17yNf5W5M2XNQvj+ge3/z4wDVtEpmDBG+fnLfFghFPD4a 9Sm1657528a/g85D6+qT0Z73rjFCy41QQso0f6ht6ta811ddB67jZDwb22IPGI20RTzK 0z2whUjb0ixa2X30aD5ek4SDjvwtE4oRH2oSEbCHdalMYLLujbVfJPDIXG8G9D18rjow BtHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=LBJ8kP1biqZrEQ37654Q5cgle8LFEhkI/7V1hbZ0U4I=; b=Ncn0yUxi2fhJEMQwp6X3ZHXRWx4GC6czAheyP4zZ4U65LVTqL27lbwQpMDdyt0msXj HBkUTqgwxloodw6DmDYHB4njXndgUAD+pz6PrHiHGCs4+keN/ZsjfptHsZLHkMh0UINq 3KMvyz7lRFAtDxrzH91ryPC4tNiCWIiGOx2q7oXiHqZAubVSQTdxE+fiBamuljUSDEoG 1vCXs4guc1NLAo4ZAQHN2XeyrmeZe2hgLExFAHx7JSsQumr2EM/Qyk3W3qnBKTa+FAcj OSY8yOT7DGS2ByqADJJp5Pr8jlpe4G0WZ/9ClasGsAl7DDRtxAQrW0OjksTMAbA5zX+/ FpQA== 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 v16si11170838eds.222.2020.09.22.19.57.58; Tue, 22 Sep 2020 19:58:21 -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 S1727177AbgIWCBJ (ORCPT + 99 others); Tue, 22 Sep 2020 22:01:09 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:48751 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbgIWCBJ (ORCPT ); Tue, 22 Sep 2020 22:01:09 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R331e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=23;SR=0;TI=SMTPD_---0U9oxvFx_1600826462; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U9oxvFx_1600826462) by smtp.aliyun-inc.com(127.0.0.1); Wed, 23 Sep 2020 10:01:04 +0800 Subject: Re: [PATCH v18 25/32] mm/mlock: remove lru_lock on TestClearPageMlocked in munlock_vma_page To: Hugh Dickins Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.org, 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, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com, "Kirill A. Shutemov" , Vlastimil Babka References: <1598273705-69124-1-git-send-email-alex.shi@linux.alibaba.com> <1598273705-69124-26-git-send-email-alex.shi@linux.alibaba.com> From: Alex Shi Message-ID: <289ad388-d91a-92f5-b29c-030b666a74ee@linux.alibaba.com> Date: Wed, 23 Sep 2020 09:58:52 +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: Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/9/22 ????2:13, Hugh Dickins ะด??: > On Mon, 24 Aug 2020, Alex Shi wrote: > >> In the func munlock_vma_page, the page must be PageLocked as well as >> pages in split_huge_page series funcs. Thus the PageLocked is enough >> to serialize both funcs. >> >> So we could relief the TestClearPageMlocked/hpage_nr_pages which are not >> necessary under lru lock. >> >> As to another munlock func __munlock_pagevec, which no PageLocked >> protection and should remain lru protecting. >> >> Signed-off-by: Alex Shi > I made some comments on the mlock+munlock situation last week: > I won't review this 24/32 and 25/32 now, but will take a look > at your github tree tomorrow instead. Perhaps I'll find you have > already done the fixes, perhaps I'll find you have merged these back > into earlier patches. And I won't be reviewing beyond this point: > this is enough for now, I think. > Yes, these 2 patches was fixed as your suggested on https://github.com/alexshi/linux.git lruv19.5 83f8582dcd5a mm/mlock: remove lru_lock on TestClearPageMlocked 20836d10f0ed mm/mlock: remove __munlock_isolate_lru_page Thanks! Alex