Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp941475iog; Wed, 15 Jun 2022 16:16:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sU2YCoAWZuDJbhtLLy848JcYLCHPUgI6RomEp3xFuuXuF9LOwR3qs2/aspF5JtUf/MkA4v X-Received: by 2002:a63:6cf:0:b0:3fc:961b:deac with SMTP id 198-20020a6306cf000000b003fc961bdeacmr1843578pgg.180.1655335005208; Wed, 15 Jun 2022 16:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655335005; cv=none; d=google.com; s=arc-20160816; b=exkOEbayUXakATkhuSFtEXqDH+oIxUIpAIFFeyxoP5aaCqIXj/iVGmzphjLV6o7w85 +lzmz1F9ovJdW3GNBWGSunkMtiM0NDxqqlE1JnoWz7RwlskJyuZ+j++ZG0/cUL+KoOGV vsbNU4nvd6Gh5q/nX7xWEjxGNId/cfzAlnM1X6BgEs1GIl0n9i/TEW5YyJp62wDn9RIO maLZdV10OX//NSRo4G62r+K59bB3mqcJvO5lW9Se5E/XrE2vuTI3Cv/Bj7SgnZe98d2Z n3V9A7tXqRR8Sh6qva6ZNT6rzlaKVbWF1JB0ReQKNDwX5iyuuks/DAfU6aj7y1y9HK23 laTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2XObwvEIRFeSUPWlsccqJL2V2/Mvgt3nETnC1b9HKa8=; b=FJq8Lzz9aI2sdxs2+FODp2kMKp3WB0Qv5BhYC4valTbzwdjV5wi6WBvrY1fV3ycSJv rGdVgyOD1YdtcYfxy9q/gy4id5nA45HrahWdr0y0agQBx6nuI2Dc7Tzq77ETdhlKvhGn CpMHFN2huyulAAPKJuh1ioCeZVJZ+V8P2RnoHcS3mkxN5vQXZoB2dDI5MqhmqRLFhCoU pkcMk4V/Ty8xZkxmVRU9otl6r/tLXYpeLNdzNqSZz85mjywE+hTwTfJIqpq4m617Hnzm nbMPXojd6E4SdjMqzgewBoECs+4o8m9YQzLPcAQIWBG8v7U2lgq0+Hr1lvrrccdXzLUe rMwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="S2S/srd6"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v13-20020a056a00148d00b0050d5b4ee692si662340pfu.106.2022.06.15.16.16.32; Wed, 15 Jun 2022 16:16:45 -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=@google.com header.s=20210112 header.b="S2S/srd6"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347657AbiFOWnm (ORCPT + 99 others); Wed, 15 Jun 2022 18:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237675AbiFOWnl (ORCPT ); Wed, 15 Jun 2022 18:43:41 -0400 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1363954BD7 for ; Wed, 15 Jun 2022 15:43:40 -0700 (PDT) Received: by mail-ua1-x929.google.com with SMTP id h21so3533728uaw.7 for ; Wed, 15 Jun 2022 15:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2XObwvEIRFeSUPWlsccqJL2V2/Mvgt3nETnC1b9HKa8=; b=S2S/srd6++j7u7iD7ddlh75/PimyvVkw3xD/iReZx2VdakC+JjCSDBCASxeIHuv3V1 v+/dVFIS1Utv6mw9teyrxzcYyDxI7VofJ4oyO6GAUplv10+0M5XXrevWfmgSicsnWWFP 6a6FoXCgRLMDABe7hpmFkTJhwRj0JvpEG3N2C8lQkn9FQRrl6IdGuOIT6e7rjyomtpAc NfI6pE8pnIpMEJpgG0lC/bDDw9h0VMc9QWZG8Gs4Iz0i4IEe1pH4oSzcPrQJRgNBrKnm dkeBB4ax2K9f6UGVaK/PjM8jJyuxd2rJVuAu+hDcAdGOqwH/JM8t7kJbxnI80FPQaK3E UlxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2XObwvEIRFeSUPWlsccqJL2V2/Mvgt3nETnC1b9HKa8=; b=T87wxEEATyJjeV5Ijhw8Knhw1nDLgvO0JpisqhaXfyIlj40Lx0W3hNr2uDbx43ySv7 cNwWEgXnuuORoD668FQgsOqRoAuqRJET7b1xq15giyGHp5B6lGGQ/Uzl5JwMrprbz8Kv WIj9xNrorQSJc9uo9ABkHT6BtgG8fG78KJHFTn7yAYD6wqdgmzF6Rc37pBZXlsmE/npP hoJzYM5RuWAP6Q2z3ge4yLERb9gp+aZmGbXaC36NtyGenvqYNbmgvi2kCqxbUDBhIYKG nN/gECR2yZvsUqZmptv+1L4By11hknYlw6V12dA9SYGQlBII7TFEVQ7rtkkid6tjqR6H ys1g== X-Gm-Message-State: AJIora9E9e76suYrtNXlBpwPByP+EGisr9VjOpRC9/5XByq0yOpcWzUk UauyyTRo0mWuWeuOEslCgVhbBzd8f/wgsPEYHyi58A== X-Received: by 2002:ab0:5781:0:b0:37b:de3d:5d4e with SMTP id x1-20020ab05781000000b0037bde3d5d4emr1042184uaa.1.1655333019050; Wed, 15 Jun 2022 15:43:39 -0700 (PDT) MIME-Version: 1.0 References: <20220613125622.18628-1-mgorman@techsingularity.net> <20220613125622.18628-8-mgorman@techsingularity.net> In-Reply-To: <20220613125622.18628-8-mgorman@techsingularity.net> From: Yu Zhao Date: Wed, 15 Jun 2022 16:43:03 -0600 Message-ID: Subject: Re: [PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock To: Mel Gorman , Andrew Morton Cc: Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , Hugh Dickins , LKML , Linux-MM Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Jun 13, 2022 at 8:54 AM Mel Gorman wrote: ... > +#define pcpu_spin_trylock_irqsave(type, member, ptr, flags) \ > +({ \ > + type *_ret; \ > + pcpu_task_pin(); \ > + _ret = this_cpu_ptr(ptr); \ > + if (!spin_trylock_irqsave(&_ret->member, flags)) \ > + _ret = NULL; \ I'm getting "BUG: sleeping function called from invalid context" with mm-everything-2022-06-14-19-05. Perhaps missing a pcpu_task_unpin() here? > + _ret; \ > +})