Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp572786ybt; Fri, 10 Jul 2020 07:11:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOeY6eVXwv0PZH/0PjShHRWfcQGdyOtkCMjXOKY7RtpDF6bDWRcI4ki4P8SWWj/4wArX1E X-Received: by 2002:a05:6402:1777:: with SMTP id da23mr76262224edb.260.1594390296677; Fri, 10 Jul 2020 07:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594390296; cv=none; d=google.com; s=arc-20160816; b=uUoEGKUZGl/G3xE7av3t26MlbCdvKjfCB6GhhAUryNyV6AphmH2KEL7t++OSzIbxpa GRnmSKHwu0ZS7z5Z1bPAkQUF1ZtPFdOkQZZGPiIjfEREPQ6O0u8YIbG+Kv+ZfuB6o6Xh l2/+O9UJts5MGhDN8fGOz3pT1ZwLFZP+L9RNLha8I+jPWiAAfvCP5dvdfeL4B7Q6qa0B KOWc9mb0Kqzsdwal3xKOMnFQkR+dooDQKbuu9zHpukML7bSB9tcYYMg1dD8PW/H4K0TF dKpbePPWQNJlNnCS2x6WToGh/yub9Ufd3pljZ2gOeZ2P4UgkfeeAkUf3iqhmx0UdrzgI bA0Q== 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=iNtrZA4f78iWvIppAu7RTtan8QPuKPfuw3/1AcbjYEk=; b=V86g20F65hcxCBFt2hKUmsYuH7ibq3w9QgDLWPsD7WdLBJHWUzKnrUVF8JvTqqyqXX TOyXvX+M/zFnkAZMqJ981vrPRUIY05qiH+Lctb1Yp56jtZqbCDnlE3XUNiAmUwTs/HBm 3dfiZ95FEotyrMXoDu0ulTTjc0w5GhtBLm4HevhCcO10fIQ/kbnHN40u0LMQl8NaHXkS 4UY6aaju4dweQo0WbAiUJZDRQ+/0hXatXFfU84fs1+7RY8s1wFXavIeSDhXvsIVpNMfk S2CO99kQnfmltgI3sfg2s9HU8WewmXbAAtWY0MKD/TRNlvmCb6P5jkBJ9LWXdjOFDGgw 0R4w== 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 s23si3624136eji.327.2020.07.10.07.11.13; Fri, 10 Jul 2020 07:11:36 -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 S1727090AbgGJOK3 (ORCPT + 99 others); Fri, 10 Jul 2020 10:10:29 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:37785 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbgGJOK1 (ORCPT ); Fri, 10 Jul 2020 10:10:27 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0U2IjCvH_1594390221; Received: from IT-FVFX43SYHV2H.lan(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U2IjCvH_1594390221) by smtp.aliyun-inc.com(127.0.0.1); Fri, 10 Jul 2020 22:10:22 +0800 Subject: Re: [PATCH v14 07/20] mm/thp: narrow lru locking To: "Kirill A. Shutemov" Cc: Hugh Dickins , Matthew Wilcox , Johannes Weiner , akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, yang.shi@linux.alibaba.com, 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> <20200709154816.wieg5thfejyv2h2l@box> <20200710112831.jrv4hzjzjqtxtc7u@box> From: Alex Shi Message-ID: Date: Fri, 10 Jul 2020 22:09:42 +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: <20200710112831.jrv4hzjzjqtxtc7u@box> 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/10 下午7:28, Kirill A. Shutemov 写道: >> * hugetlb_fault_mutex (hugetlbfs specific page fault mutex) >> * anon_vma->rwsem >> * mm->page_table_lock or pte_lock >> - * pgdat->lru_lock (in mark_page_accessed, isolate_lru_page) >> * swap_lock (in swap_duplicate, swap_info_get) >> * mmlist_lock (in mmput, drain_mmlist and others) >> * mapping->private_lock (in __set_page_dirty_buffers) >> - * mem_cgroup_{begin,end}_page_stat (memcg->move_lock) >> + * lock_page_memcg move_lock (in __set_page_dirty_buffers) >> * i_pages lock (widely used) >> + * lock_page_lruvec_irq lruvec->lru_lock > I think it has to be > lruvec->lru_lock (in lock_page_lruvec_irq) Good catch! I will update it in next version. Thanks! > > No? > >> * inode->i_lock (in set_page_dirty's __mark_inode_dirty) >> * bdi.wb->list_lock (in set_page_dirty's __mark_inode_dirty) >> * sb_lock (within inode_lock in fs/fs-writeback.c) >> >>> local_irq_disable() also deserves a comment. >>> >> yes, I will add a comment for this. Do you mind give reviewed-by for this patch? > Reviewed-by: Kirill A. Shutemov Thanks a lot! :)