Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1312375pxb; Tue, 17 Aug 2021 08:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6hodbvC/rnoB/69qKDqN2yhWn96NpJcnFc0Rnx7b8qkKggtSaZAyq+BqUv7/ZsUGxgMIw X-Received: by 2002:a05:6638:1495:: with SMTP id j21mr3518036jak.117.1629215002622; Tue, 17 Aug 2021 08:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629215002; cv=none; d=google.com; s=arc-20160816; b=MJ33Y0iA2eT+jieTr4k+G5vSwEkv4vD+MeNI5dEDyHJ23YOqja+ZeDk6MxXoVV/UPn xY2OOOGOCVuRpOQyzRv93WjScNFt2+wwzK13WiL1GeP8YecHxYQJZKdmZ4mH3/KYSjfq tXPvPiSoK2KlLi+oQ9TgI+E6x5LUyrtZI6ktrWHbbTZWmXxBHJmo7UTd/d657nbtsFve yRgZM51AgU9MG4OrbXyVh8zSshSrzmFEWiUymeNQxXLpLBHXGbMou69pUkPAzY+KujI2 O1jh5mmwF1ojHAz+ep7fHuACAwJa9D6r21bPt/bh2qOmuoHPM+VARpQZ9sMbWakOE6qP DqEA== 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:dkim-signature :dkim-signature:date; bh=VijU9XyWJmgrJnMm1liziV+i68ZEXkpFrVAD78kLVvY=; b=uqIEnBakd2uR9Jgby8YcKOrqZ5ys7uhsY+XbeeWKT6wv6T64FO6q+/dQLM/QZDsRIp gmfzGj26F0aed4O/lc34UWK0vlIKJccrWBRvsgO8jPzh5A81n/JJoNwLr9nY9Eduv+iM ufPoYcScfoflaKcJ0jLqzItHoBkOrHhcygsvUCRLE5+9lqTdZFnYokeTtDWhXQpdT3hh 74zdkrzcoZNjhiN5nKzp/iyuLDWPQBnfolK42ndi7qhM+jMW0MdLvX3AsG4ugFUYZDNe p759qrWi/6lQpclbzBd2BIX2xWvuUE9dcJ9GVDfDLxXJPLdyhu5OC8a3lq//jfy86boa FlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=srIWTjAH; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si2894812ioc.58.2021.08.17.08.43.09; Tue, 17 Aug 2021 08:43:22 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=srIWTjAH; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238117AbhHQPkY (ORCPT + 99 others); Tue, 17 Aug 2021 11:40:24 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33142 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238321AbhHQPkM (ORCPT ); Tue, 17 Aug 2021 11:40:12 -0400 Date: Tue, 17 Aug 2021 17:39:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629214778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VijU9XyWJmgrJnMm1liziV+i68ZEXkpFrVAD78kLVvY=; b=srIWTjAHSBKRX4Ko/AoyjMsWogoODmGdhFAuZ9fDrDzwxKS5UwZAQjYP9hTXb2byQF0R0e Ghk3RpScGKHLnzAgPm3+pzlEHsR9jPldf626uUglIi753fAb05a43SJ8qeooAWAXcFIMCh cHNMh9BLl6UTk4hBjNhIL3EObdkPcKedf8IqiahQNXr9Sy4DP/4mqRxMPcivvcXn75orF3 XhSRL5jDU2QP6kWL6J8hEZhfn4SR0INvXGIOWlYrXu1HfyqjLmFu68BZoOwuSoATvPx2aL LGbPAitILUS1TNMwTab9r7AZxXmb9CtnVv13i8u5BPTN5HWtmKtFW1UNnLW3Iw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629214778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VijU9XyWJmgrJnMm1liziV+i68ZEXkpFrVAD78kLVvY=; b=5YdvNXY8zZaHutR7hCZ2S7eiejzeEkVg4K8AjM98dNRTM/1T2YoVZzf2YqVdME35afRafB lRMZNCVDmpzOVQBQ== From: Sebastian Andrzej Siewior To: Vlastimil Babka Cc: Andrew Morton , Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Galbraith , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Jann Horn Subject: Re: [PATCH v4 35/35] mm, slub: convert kmem_cpu_slab protection to local_lock Message-ID: <20210817153937.hxnuh7mqp6vuiyws@linutronix.de> References: <20210805152000.12817-1-vbabka@suse.cz> <20210805152000.12817-36-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210805152000.12817-36-vbabka@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-05 17:20:00 [+0200], Vlastimil Babka wrote: > @@ -2849,7 +2891,11 @@ static void *___slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, > > load_freelist: > > - lockdep_assert_irqs_disabled(); > +#ifdef CONFIG_PREEMPT_RT > + lockdep_assert_held(this_cpu_ptr(&s->cpu_slab->lock.lock)); > +#else > + lockdep_assert_held(this_cpu_ptr(&s->cpu_slab->lock)); > +#endif Could you please make this hunk only lockdep_assert_held(this_cpu_ptr(&s->cpu_slab->lock)); i.e. the non-RT version? > /* > * freelist is pointing to the list of objects to be used. Sebastian