Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6200866pxv; Thu, 29 Jul 2021 08:45:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLmX5GnF/4jlz+S6lVRrDUYdy9SwEaEaVzUsGlfD2FlZPZyLE4ln6UCYT0lqu8F0kLsoaC X-Received: by 2002:a02:a999:: with SMTP id q25mr5130087jam.16.1627573530204; Thu, 29 Jul 2021 08:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627573530; cv=none; d=google.com; s=arc-20160816; b=K+9kffK9Q6pK1Ow24OvUqyKZve/AbO4CL502cZUWuR5JoMKawo56fh5Z0PsGGxiQnb sKEubVYmmJHcgcl1kGGsUReYbHokydWRZeIQhBq3b1vYyI6FWNdaHt11DIs3w3zVbz+P zW3unES9Nw8gBW2CvO+U2XaLQTZxqX5uFwU7yRwFwy1gxQNzj6QE+aRsXPuOy/6OUJxH prCsE+BRpQ/qBCXT9fcuihbZgElORnoVDWujdUkLAeg4heq4h/CQo6DVsB9ZHIPW+SWI wrHnd7zFyrd0NnuTsN8lh4Ab9uKXTTWVSjqzkgbeyC8wxxZInSnKcz/V+Ck0YEA2dIzq 2pcQ== 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=/PB2gkPv0YStrRATC81VoTFYZsx6J7Kdyuuo6YDowlQ=; b=K7PAB+GM7pHqxqDexSKZRBjQmvcst7yOqFxmORApxYneW/q4VilJoeuVbZFO1NhLPe kdhkUr7qvIiC7Bo0FOAuF6qQ8IJ/9eIWQOkQUWuZWcBhgb9wvdwdacuN0A6tCuN1KDeA ep7SkooOWUNnAUOsKrGYeQWXJk29Q/TK9wzLZMmKIn/8xyUxShO0RbtK88SoClqtZg3c azPiWwdNHzzmqk8pMWZSvhZNDJGO0/FfkG4j9Kx1G83b0t0WWWPEIZkKyoPg4i9Ilq2l vmmGSfiMAWMoSsKgIvnFmEfQq2Wq9Sk6qBJebg7l7yznOj6uPfvQ5Am+FwAzhUh5uJY1 mr2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si4198312ild.123.2021.07.29.08.45.16; Thu, 29 Jul 2021 08:45:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237910AbhG2PnJ (ORCPT + 99 others); Thu, 29 Jul 2021 11:43:09 -0400 Received: from outbound-smtp08.blacknight.com ([46.22.139.13]:47313 "EHLO outbound-smtp08.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237909AbhG2PnI (ORCPT ); Thu, 29 Jul 2021 11:43:08 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp08.blacknight.com (Postfix) with ESMTPS id 10A421C47F0 for ; Thu, 29 Jul 2021 16:43:04 +0100 (IST) Received: (qmail 15224 invoked from network); 29 Jul 2021 15:43:03 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 29 Jul 2021 15:43:03 -0000 Date: Thu, 29 Jul 2021 16:43:02 +0100 From: Mel Gorman To: Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Jesper Dangaard Brouer , Jann Horn Subject: Re: [PATCH v3 31/35] mm, slub: optionally save/restore irqs in slab_[un]lock()/ Message-ID: <20210729154302.GF3809@techsingularity.net> References: <20210729132132.19691-1-vbabka@suse.cz> <20210729132132.19691-32-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210729132132.19691-32-vbabka@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 03:21:28PM +0200, Vlastimil Babka wrote: > For PREEMPT_RT we will need to disable irqs for this bit spinlock. As a > preparation, add a flags parameter, and an internal version that takes > additional bool parameter to control irq saving/restoring (the flags > parameter is compile-time unused if the bool is a constant false). > > Convert ___cmpxchg_double_slab(), which also comes with the same bool > parameter, to use the internal version. > > Signed-off-by: Vlastimil Babka On arm64 allmodconfig, the following build warning was new In file included from ./include/linux/spinlock.h:54, from ./include/linux/mmzone.h:8, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from mm/slub.c:13: mm/slub.c: In function '___cmpxchg_double_slab.isra.0': ./include/linux/irqflags.h:177:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] 177 | arch_local_irq_restore(flags); \ | ^~~~~~~~~~~~~~~~~~~~~~ mm/slub.c:408:17: note: 'flags' was declared here 408 | unsigned long flags; | ^~~~~ In file included from ./include/linux/string.h:262, from ./include/linux/bitmap.h:10, from ./include/linux/cpumask.h:12, No idea what's special about arm allmodconfig that confuses the compiler. -- Mel Gorman SUSE Labs