Message ID | 20201215203347.kUAcWnZn0%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=3wKV=FT=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C383AC4361B for <linux-mm@archiver.kernel.org>; Tue, 15 Dec 2020 20:33:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6E53022CAE for <linux-mm@archiver.kernel.org>; Tue, 15 Dec 2020 20:33:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E53022CAE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EB78E6B0081; Tue, 15 Dec 2020 15:33:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E3EEE6B0082; Tue, 15 Dec 2020 15:33:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE2956B0083; Tue, 15 Dec 2020 15:33:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0102.hostedemail.com [216.40.44.102]) by kanga.kvack.org (Postfix) with ESMTP id B17EB6B0081 for <linux-mm@kvack.org>; Tue, 15 Dec 2020 15:33:50 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 79AD3181AEF2A for <linux-mm@kvack.org>; Tue, 15 Dec 2020 20:33:50 +0000 (UTC) X-FDA: 77596667820.20.skirt71_070ec9227426 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 31D88180C0611 for <linux-mm@kvack.org>; Tue, 15 Dec 2020 20:33:50 +0000 (UTC) X-HE-Tag: skirt71_070ec9227426 X-Filterd-Recvd-Size: 4542 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf10.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 15 Dec 2020 20:33:49 +0000 (UTC) Date: Tue, 15 Dec 2020 12:33:47 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608064428; bh=PMreW2R4Vi4QzUU4z1kWWF1Hlk7nQ75NLwcVJaoR06g=; h=From:To:Subject:In-Reply-To:From; b=Fg6KExjlL7q5L3vlDeC5fca0+M6jzLbrO3itgGKR7adWdPVWO/cw/VOkKAdiWkFW9 VMhbe5msNv3CtTeXPhD6Zd8Bje9+f6BNjKLBWBf2rt5qu+r9Kb5J0lM5h3qKG3lfiI 970IJqDAX8TcRdWG4BQAC7DV1IzXo1RbwYumFqn8= From: Andrew Morton <akpm@linux-foundation.org> To: aarcange@redhat.com, akpm@linux-foundation.org, alex.shi@linux.alibaba.com, alexander.duyck@gmail.com, aryabinin@virtuozzo.com, daniel.m.jordan@oracle.com, hannes@cmpxchg.org, hughd@google.com, iamjoonsoo.kim@lge.com, jannh@google.com, khlebnikov@yandex-team.ru, kirill.shutemov@linux.intel.com, kirill@shutemov.name, linux-mm@kvack.org, mgorman@techsingularity.net, mhocko@kernel.org, mhocko@suse.com, mika.penttila@nextfour.com, minchan@kernel.org, mm-commits@vger.kernel.org, richard.weiyang@gmail.com, rong.a.chen@intel.com, shakeelb@google.com, tglx@linutronix.de, tj@kernel.org, torvalds@linux-foundation.org, vbabka@suse.cz, vdavydov.dev@gmail.com, willy@infradead.org, yang.shi@linux.alibaba.com, ying.huang@intel.com Subject: [patch 07/19] mm: page_idle_get_page() does not need lru_lock Message-ID: <20201215203347.kUAcWnZn0%akpm@linux-foundation.org> In-Reply-To: <20201215123253.954eca9a5ef4c0d52fd381fa@linux-foundation.org> User-Agent: s-nail v14.8.16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/19] mm/thp: move lru_add_page_tail() to huge_memory.c
|
expand
|
--- a/mm/page_idle.c~mm-page_idle_get_page-does-not-need-lru_lock +++ a/mm/page_idle.c @@ -32,19 +32,15 @@ static struct page *page_idle_get_page(unsigned long pfn) { struct page *page = pfn_to_online_page(pfn); - pg_data_t *pgdat; if (!page || !PageLRU(page) || !get_page_unless_zero(page)) return NULL; - pgdat = page_pgdat(page); - spin_lock_irq(&pgdat->lru_lock); if (unlikely(!PageLRU(page))) { put_page(page); page = NULL; } - spin_unlock_irq(&pgdat->lru_lock); return page; }