Message ID | 20201215203351.k_hk2O5De%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 7B0E5C4361B for <linux-mm@archiver.kernel.org>; Tue, 15 Dec 2020 20:33:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2D2E422CAE for <linux-mm@archiver.kernel.org>; Tue, 15 Dec 2020 20:33:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D2E422CAE 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 BAFE08D0002; Tue, 15 Dec 2020 15:33:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B32C78D0001; Tue, 15 Dec 2020 15:33:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D3808D0002; Tue, 15 Dec 2020 15:33:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0192.hostedemail.com [216.40.44.192]) by kanga.kvack.org (Postfix) with ESMTP id 7DA8F8D0001 for <linux-mm@kvack.org>; Tue, 15 Dec 2020 15:33:54 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 494FB181AEF30 for <linux-mm@kvack.org>; Tue, 15 Dec 2020 20:33:54 +0000 (UTC) X-FDA: 77596667988.29.books52_3214e2a27426 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 37DD118084BB7 for <linux-mm@kvack.org>; Tue, 15 Dec 2020 20:33:54 +0000 (UTC) X-HE-Tag: books52_3214e2a27426 X-Filterd-Recvd-Size: 3812 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf47.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 15 Dec 2020 20:33:53 +0000 (UTC) Date: Tue, 15 Dec 2020 12:33:51 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608064433; bh=YsmLonhKn5rdyprldCYnMKLk4XtNdulv/3zrJjVmsFY=; h=From:To:Subject:In-Reply-To:From; b=d8RT0mGx8La0aXDXcTCuDkk2C7V+SVXCkbrMWeTBfpUwq8eJL2TXanaSwaxTOcc0d ShxM7eIEkjcjAZf3tcOna0KTNO97+Yf634BqgjnRFxO2GPvcNiru0+W5nlmP0yQeNU ck/RjNrT+NQX5yqB1wg4zJfQJUvgYAEYFxWankIQ= 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 08/19] mm/memcg: add debug checking in lock_page_memcg Message-ID: <20201215203351.k_hk2O5De%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/memcontrol.c~mm-memcg-add-debug-checking-in-lock_page_memcg +++ a/mm/memcontrol.c @@ -2150,6 +2150,12 @@ again: if (unlikely(!memcg)) return NULL; +#ifdef CONFIG_PROVE_LOCKING + local_irq_save(flags); + might_lock(&memcg->move_lock); + local_irq_restore(flags); +#endif + if (atomic_read(&memcg->moving_account) <= 0) return memcg;