Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp965324imk; Sun, 3 Jul 2022 13:30:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v01eTcGUQiBSCErHJtl1t7AK2o+l82XhUDKfW7CKPYYXLlYQg26jkm2xOv9JtfKk+yUR7k X-Received: by 2002:a17:907:3e81:b0:726:9615:d14d with SMTP id hs1-20020a1709073e8100b007269615d14dmr25160257ejc.517.1656880249132; Sun, 03 Jul 2022 13:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656880249; cv=none; d=google.com; s=arc-20160816; b=wRcElaa+xCBKgVdDcpkvWKyHTDrDuIlcZD1BgDL+qHmBs1tyC8lphhxtL9nTV0TFIS CqjGtQcJx9qmJYaySA9zWedcVmN4IwdIfEqSxMzF29nJzH7FCxkMW200Ynuyuz57IAFA NIr4kyUKqojMvyX12C3Cr6zEIkMOIGuzKMsuHA396ZC+8P/AZ4sr7hHY+doTNb7SLhp/ kHiih9RRdyDBbA4guvcclCEiUH8swScea7yQF6MUO1jQ9F6AdjShkkzoqfORUwKdF0W7 MnMMnlOuchsctIxbYp4P7dwPitLLphTfNeC5dnPeKkCOIqW/S5lnI1h2gZlHE7/COsjQ DiXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Mx3s1MyytQl5Dt9HryZV+0UCnF/0Ew+9wKkNtAiC9nk=; b=zGuK+BA9xeu2tv0xvLykkH+rWKc9PrwI4dhaee62Tc8hvZCb2gNo2Pjiyl0/8cF2uL Kw+dtKc63M9A34XfLospRv/xFtVZHGSsbAnHwjWTY9TlFAVFv7X+EYZhAfBVZ/GM0Epv 8YdjLiy2HVXjc7lvUpylD/W9XlLLA+U+w3H9+aVeIhuzyOb8W9iUo6/Ierbgz4T2gQDU I4HMqH5gjZvReIyec629gN5jnko179SBoPSH6yH9sjBTZK0I+5wz07a0TTc2zyR+jIzA jsa9jfShB9bAFrT9Rd6Tmi37t+/5hZZEtGdv8kKT5akyl97vVw8HAQlYD2OkMDhqHC/s fxZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=p+7atuoF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a170906498700b0072677faec75si13546503eju.872.2022.07.03.13.29.58; Sun, 03 Jul 2022 13:30:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=p+7atuoF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbiGCUWO (ORCPT + 99 others); Sun, 3 Jul 2022 16:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiGCUWM (ORCPT ); Sun, 3 Jul 2022 16:22:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC501B1 for ; Sun, 3 Jul 2022 13:22:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F497611B5 for ; Sun, 3 Jul 2022 20:22:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30D47C341C6; Sun, 3 Jul 2022 20:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1656879730; bh=b7K9m4fAbOcD/g/S4tQDp1ZmghJk5cmGd/KRtIjljGQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p+7atuoFLRz41Z8H+eTqkdcbHwZnwumlQ1AWOimYmR38ojVc+aLWaJBkxcw6ZtEpK kLOTEKxAKT86zjXJ+qYblT+rFnep6XCt4zouaVHHDMyM0n0Lvy6oZ5RTjHn3jwdncN wbPLV/2PpZNOZFhg43PM3xIInGVM9ASZBGvCYZ5U= Date: Sun, 3 Jul 2022 13:22:09 -0700 From: Andrew Morton To: kernel test robot Cc: Mel Gorman , 0day robot , LKML , linux-mm@kvack.org, lkp@lists.01.org, Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , Hugh Dickins Subject: Re: [mm/page_alloc] 2bd8eec68f: BUG:sleeping_function_called_from_invalid_context_at_mm/gup.c Message-Id: <20220703132209.875b823d1cb7169a8d51d56d@linux-foundation.org> In-Reply-To: References: <20220613125622.18628-8-mgorman@techsingularity.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 3 Jul 2022 17:44:30 +0800 kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-11): > > commit: 2bd8eec68f740608db5ea58ecff06965228764cb ("[PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock") > url: https://github.com/intel-lab-lkp/linux/commits/Mel-Gorman/Drain-remote-per-cpu-directly/20220613-230139 > base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 > patch link: https://lore.kernel.org/lkml/20220613125622.18628-8-mgorman@techsingularity.net > Did this test include the followup patch mm-page_alloc-replace-local_lock-with-normal-spinlock-fix.patch? From: Mel Gorman Subject: mm/page_alloc: replace local_lock with normal spinlock -fix Date: Mon, 27 Jun 2022 09:46:45 +0100 As noted by Yu Zhao, use pcp_spin_trylock_irqsave instead of pcpu_spin_trylock_irqsave. This is a fix to the mm-unstable patch mm-page_alloc-replace-local_lock-with-normal-spinlock.patch Link: https://lkml.kernel.org/r/20220627084645.GA27531@techsingularity.net Signed-off-by: Mel Gorman Reported-by: Yu Zhao Signed-off-by: Andrew Morton --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/page_alloc.c~mm-page_alloc-replace-local_lock-with-normal-spinlock-fix +++ a/mm/page_alloc.c @@ -3497,7 +3497,7 @@ void free_unref_page(struct page *page, zone = page_zone(page); pcp_trylock_prepare(UP_flags); - pcp = pcpu_spin_trylock_irqsave(struct per_cpu_pages, lock, zone->per_cpu_pageset, flags); + pcp = pcp_spin_trylock_irqsave(zone->per_cpu_pageset, flags); if (pcp) { free_unref_page_commit(zone, pcp, page, migratetype, order); pcp_spin_unlock_irqrestore(pcp, flags); _