Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp343933imw; Fri, 8 Jul 2022 04:09:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tTsdgx17+2HYS7COvk/6mi3LQrOLKa7dPRkWXl5G/qTGT2C9G8AtNx04DjaeMIwAqs98KR X-Received: by 2002:a17:90b:3b81:b0:1ed:3655:d0c8 with SMTP id pc1-20020a17090b3b8100b001ed3655d0c8mr11354665pjb.56.1657278582842; Fri, 08 Jul 2022 04:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657278582; cv=none; d=google.com; s=arc-20160816; b=m2lYVAge/f2W6N8zV8C4GV78AL983dTP6hqVfwAGVAVnvOim0U/+RUejwDLNybMSjH sl/XG7QDQLAzkKKRrPpFVuhcHY5clMZW7+EO01BOjiUmzZbv6H1Gx3vJ3UPaNrCw3g+X rOcvxUTyvcPERDWoxni2CAyc0qaSuJUSIoNIyWbOXd+nJlVD0H5uaW7zIwgiy0x2FnQr cqoV+N+NVr5MkxRs1fehH7JnBWbRS6YwAeuGr3ajmG70qCrDGlNhTgPcRtC0nqjx35+R owv5ySB2Fzkaw2KwvMqDvkh9QzUvDscr5K+JFlBUhxIgh6h9YNnKnR+s5E4qQv7euctm vAWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=f5SkcqdnWc+zlzTC3cCCDtydzEInluB78IY4tqQhZLA=; b=qOlJfqb4azpn4AdicG8VhLWvOOub1AljWwgt5XuS7axdrVvfyil5txuzFGsjyns/js jXNCyPbK1bZ4GfHyKMn7KUzSMiWTdpO1q35vAXQQQG6nXzwZK9d2Gj+Zs4AfQ9uFh7nD 7ltMASEvlIN+2AURHfvxMbd6ZRppF/yLKixBFc3OfAqHXdVSCgcSZGDzPG/tVC4J0VMP mfO5ILZcJLzXLekPoZAHG/uhak2iuiuRdsrH9HgQNkJJJr39ZHBpduZBwTCOTZi+ERaX ExRNr8MN+fWrc33suz92smpmmSRArRSEhZfwbCDUOFu8SdcLSDL2N6uZziEaK/iN5KOR BMqw== ARC-Authentication-Results: i=1; mx.google.com; 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 mv11-20020a17090b198b00b001ecfe520ac7si2081583pjb.103.2022.07.08.04.09.06; Fri, 08 Jul 2022 04:09:42 -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; 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 S237897AbiGHK4K (ORCPT + 99 others); Fri, 8 Jul 2022 06:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237678AbiGHK4J (ORCPT ); Fri, 8 Jul 2022 06:56:09 -0400 Received: from outbound-smtp12.blacknight.com (outbound-smtp12.blacknight.com [46.22.139.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769B48737F for ; Fri, 8 Jul 2022 03:56:07 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp12.blacknight.com (Postfix) with ESMTPS id 091421C3A87 for ; Fri, 8 Jul 2022 11:56:06 +0100 (IST) Received: (qmail 27842 invoked from network); 8 Jul 2022 10:56:05 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 8 Jul 2022 10:56:05 -0000 Date: Fri, 8 Jul 2022 11:56:03 +0100 From: Mel Gorman To: Vlastimil Babka Cc: Oliver Sang , Andrew Morton , 0day robot , LKML , linux-mm@kvack.org, lkp@lists.01.org, Nicolas Saenz Julienne , Marcelo Tosatti , Michal Hocko , Hugh Dickins Subject: Re: [mm/page_alloc] 2bd8eec68f: BUG:sleeping_function_called_from_invalid_context_at_mm/gup.c Message-ID: <20220708105603.GI27531@techsingularity.net> References: <20220613125622.18628-8-mgorman@techsingularity.net> <20220703132209.875b823d1cb7169a8d51d56d@linux-foundation.org> <1d3a26ac-89b3-0211-f8f2-5165ffa732fd@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1d3a26ac-89b3-0211-f8f2-5165ffa732fd@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 Thu, Jul 07, 2022 at 11:55:35PM +0200, Vlastimil Babka wrote: > On 7/5/22 15:51, Oliver Sang wrote: > > Hi Andrew Morton, > > > > On Sun, Jul 03, 2022 at 01:22:09PM -0700, Andrew Morton wrote: > >> 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? > > > > no, we just fetched original patch set and test upon it. > > It appears you fetched v4, not v5. I noticed it from the threading of your > report that was threaded in the v4 thread, and also the github url: above. > In v4, pcpu_spin_trylock_irqsave() was missing an unpin, and indeed it's > missing in the github branch you were testing: > Thanks Vlastimil! This is my fault, I failed to verify that the code in my tree, Andrew's tree and what Oliver tested were the same so no wonder I could not find where the missing unpin was. I've gone through mm-unstable commits be42c869b8e..4143c9b5266 and can confirm that they are now identical to my own tree which includes Andrew's fix for the smatch warning that Dan reported. # git diff HEAD^..mm-pcpspinnoirq-v6r1-mmunstable | wc -l 0 The only difference between my tree and Andrew's is that there is a head commit for "mm/page_alloc: Do not disable IRQs for per-cpu allocations" which has been put on hold for now. -- Mel Gorman SUSE Labs