Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2626632rdb; Wed, 15 Nov 2023 06:20:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfgUaEMO0/lQwq666ns0WqB6uigsTJ4QFbO43LwqD4keIe8cZfYoVeBMUY+0i0YLngjOok X-Received: by 2002:a17:902:db03:b0:1cc:32ae:4afd with SMTP id m3-20020a170902db0300b001cc32ae4afdmr6951079plx.46.1700058042969; Wed, 15 Nov 2023 06:20:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700058042; cv=none; d=google.com; s=arc-20160816; b=0lkeVf6KvvHD72SiW301yeEGN8TbvYRKOxLbzvgapgfGfapwhW7K63SwvZ0vuR7ROl RZgUKjgpcxUFFumDVEk8oFhVugkJkw57gFIw1bXhqmZC3LOchzHosSmOZ766yUK8hlrE z1SMyE632mQ8MfkfzeNGlerXQplUOYdRz9xT3wKMYFGYb2jlmbrmXZCSBsqz/z4/p2SG tk0SeNNNb7l3EbqNSWxruHWUwnoGtq6CY9ljKCWkFMv85UTnrvxNMKOQ74UASV0V9vx2 dBF6twykIXNHy8HQ/yWMmxaj8e/Ix1fuii+aUl4Tvns2Fg305tofpMk8Ktd4tQ38XTYu 2afA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hlqvDXZsMW71Nr6Fuamenh+8QkMJUaEmrVK8mZ8UP10=; fh=AICnHb0asDYYduy+qxsAsTfKJc2UcRFY4vjRwl271Gk=; b=oEfhgIr05xUrAGs0IAVqNIyUVG3bHMF7hbBu9hWgPYE2c/MuZO284Oy1OV5dgZ6t3Q xMHDCUyDwgM7F2ZrRMnWK1bhySRb0Qg1cmTQaXkc8Q/C/q+qZAshkBKyGK9HSvGY7uTK RqsjpXzOz5dldBTFiJUc5zTxLGi0pVJxy5TSVZiKOCGisq76g191dnsahIhXn+TzCEa9 vt/p0lVVsTX2IDqP7UjkBO9PzWoFiqVbWE2Fc9h1U2XvBWG5sHlBvFsd8zE+1hSg3NjV CFh3yrKLs/2X8epfumrWjBtZruCJolXjMkbRveFIslRrgL+ZEOQ9VqLEdUuDL3IJRSoC ZrmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i2-20020a170902cf0200b001c3e98a0d79si10876008plg.401.2023.11.15.06.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 06:20:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 391598077A5E; Wed, 15 Nov 2023 06:20:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344187AbjKOOUD (ORCPT + 99 others); Wed, 15 Nov 2023 09:20:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344181AbjKOOUC (ORCPT ); Wed, 15 Nov 2023 09:20:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F16BDE7; Wed, 15 Nov 2023 06:19:58 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B709C433C7; Wed, 15 Nov 2023 14:19:56 +0000 (UTC) Date: Wed, 15 Nov 2023 14:19:53 +0000 From: Catalin Marinas To: Liu Shixin Cc: Geert Uytterhoeven , Patrick Wang , Andrew Morton , Kefeng Wang , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Linux-Renesas Subject: Re: [PATCH 2/2] mm/kmemleak: move set_track_prepare() outside raw_spinlocks Message-ID: References: <20231115082138.2649870-1-liushixin2@huawei.com> <20231115082138.2649870-3-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115082138.2649870-3-liushixin2@huawei.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 06:20:11 -0800 (PST) On Wed, Nov 15, 2023 at 04:21:38PM +0800, Liu Shixin wrote: > set_track_prepare() will call __alloc_pages() which attempt to acquire > zone->lock(spinlocks), so move it outside object->lock(raw_spinlocks) > because it's not right to acquire spinlocks while holding raw_spinlocks > in RT mode. > > Signed-off-by: Liu Shixin Acked-by: Catalin Marinas Thanks for the quick fixes. -- Catalin