Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2672822pxj; Mon, 14 Jun 2021 04:37:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxpfSorJSPFNfEdgBJtxDij4ijw2pMW7deFmUctausa0OmEAXKO5nJe3QhH62ec5DLHjvD X-Received: by 2002:a17:906:c1d2:: with SMTP id bw18mr14762071ejb.123.1623670628253; Mon, 14 Jun 2021 04:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623670628; cv=none; d=google.com; s=arc-20160816; b=y0i4NZzgvUG+zRnUNLJrAjG7h/AbmwAggxVwbL+AtgOy0QFlv4R2I3ko8maBccuhQR WIqCxnruJ4IbdJzQvHAOSWbesOAT0tqdoANuAQDMeWw4AeHnGaFVbacAcM6NPEsmYJn9 MHJ2MPDbJOXx7Ft1fG5eQESpWdk5wZA5uBhyHGTMnCylssI3vq7rrOIhQwEQ1n+kpDnV rgOKGZYC+jYjbqpfyfKjin8NeEwsQ+tSQd9RBc9WJQ3blBoqjEHnQEHZRf1juWnnnKw2 y1eO3awKbeiIlc0MXETI64fwvxNBEKR/BxZsjQTZ1sy/E7W60ih/GyBV82q9Pk05YrCr T6Gg== 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=++e4A/S400E85MA7JQbxrze69YWqU4ooV/kaCLvdV1M=; b=fOkWUi7ZzSz4fNwDd2T1jho68OBWs7iJtMYS33VINmaycb8kFRK9z/OXwwK7DAqVPC jMAaKMeQXY3bgFFJdwa1MSg2wQzNYjJZaFmbGTgVnuPdfKVdCcYPuBfBplJrxR89O06S K3n6I8TMR5iVtcH9jQaJ5jeVYtpyfGdywfk6E9W95423IDlWvbRDaz3pSqSSqbr5wiPJ rW/THO3iqSyjnA0bUrrr6jqjCx5iTqLXRoBN2Dbl/Lrxj8b56Fy6spRAxH4dd9tC8Gql V0xB2wIg3vMH7ck+e3XNtguKUDcCWTq3c+oxXQxjMCXeKSC5udDuUSkxU9bEttHM7rb5 TKRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LrPKSkXi; dkim=neutral (no key) header.i=@linutronix.de; 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 b8si11242885ejl.368.2021.06.14.04.36.45; Mon, 14 Jun 2021 04:37:08 -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=LrPKSkXi; dkim=neutral (no key) header.i=@linutronix.de; 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 S235342AbhFNLfx (ORCPT + 99 others); Mon, 14 Jun 2021 07:35:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235349AbhFNLVw (ORCPT ); Mon, 14 Jun 2021 07:21:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED381C0611C6 for ; Mon, 14 Jun 2021 04:16:24 -0700 (PDT) Date: Mon, 14 Jun 2021 13:16:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1623669381; 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=++e4A/S400E85MA7JQbxrze69YWqU4ooV/kaCLvdV1M=; b=LrPKSkXilgXlJ80Tlo2vEln+cxsJ/bOVcQL9pwU4dfucv71qBhsKGEn6/kvL2TPJ/SJlrA 2bz3ynWqUuT8TYrRp4FNF3WySeWXE4fL7Z5Yp05grcyC+BJIkmEA+hkM3Nfkf+ddCDVMY2 MjEpGbLZ5Iir4mbVH4FOK/vyVca4vJf6yHyxhokjHm0j/R6B8jPSC5bxZTJ1piZIe6ku1f RtRmaUqkRdONvxV38zafFtjdw6QAwA8GgYJQXgz9TnNieTnSwN2VUGgFuEqDZa9Am5TAre MYeKV7DAmeHIx5b4HsC3Ueqtld+KPJyCYrVTbr3APyTu8X35cxqXjsZSYqH7OQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1623669381; 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=++e4A/S400E85MA7JQbxrze69YWqU4ooV/kaCLvdV1M=; b=7t5RdSbKecVbT7rqp3zRhYOnZm2a/qTFJ9Y569zzdkoOCsTDGP2ZN065AYWGbOAOlmnT+a 1nBIEkCUO7ty+BAA== From: Sebastian Andrzej Siewior To: Vlastimil Babka Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Peter Zijlstra , Jann Horn Subject: Re: [RFC v2 33/34] mm, slub: use migrate_disable() on PREEMPT_RT Message-ID: <20210614111619.l3ral7tt2wasvlb4@linutronix.de> References: <20210609113903.1421-1-vbabka@suse.cz> <20210609113903.1421-34-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-14 13:07:14 [+0200], Vlastimil Babka wrote: > > +#ifdef CONFIG_PREEMPT_RT > > +#define slub_get_cpu_ptr(var) get_cpu_ptr(var) > > +#define slub_put_cpu_ptr(var) put_cpu_ptr(var) > > After Mel's report and bisect pointing to this patch, I realized I got the > #ifdef wrong and it should be #ifnded So if you got the ifdef wrong (and kept everything as-is) then you tested the RT version on !RT. migrate_disable() behaves on !RT as on RT. As per changelog you don't use migrate_disable() unconditionally because it increases the overhead on !RT. I haven't looked at the series and I have just this tiny question: why did migrate_disable() crash for Mel on !RT and why do you expect that it does not happen on PREEMPT_RT? Sebastian