Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp297699pxb; Wed, 22 Sep 2021 02:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8qO+30nCBeZMYZDmuk69nFvxlzDFXP0+T6B4untywzvaVysUFoWbfvw19xmL5OHu1gd2r X-Received: by 2002:a02:1081:: with SMTP id 123mr3765869jay.83.1632302615555; Wed, 22 Sep 2021 02:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632302615; cv=none; d=google.com; s=arc-20160816; b=fzacaE6nZeIQEOU0Iq3937Kct05GN6NuJ7k+aFqhUjsnuSOM9Id4YoLmAuMymUoFrB /28/IqC96bRf47usYq902SvdRwjo72ydkB7VrLeSM4LIOkyFcIJj4xESzhRAdlX4kzzu neK3budtn3waQPWzGYTeNSn/Ij1qkY8g13ebkwV5PhFYIpHF55vaZSjzBIbUCmF0Pq36 4fQaL2HV1zkR5/e3JdHbioSrVzSiARhkH2aaKPeKcj30POqlUbRgD5neoy9XncFJlavq lEG6Efk/5+H9vZlefwtJJ1Wjh01SsI8Gh6KmXJtAu69UdzZbkk984AKyZQ8Cxl/rZfFU l2gw== 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=rsfkG6tEJiJIjiDfatw6ng1M6I65JveUXPR34wT3l4M=; b=y2P03i9UxeXgDa6//vTs026xd334iSjSrFacPMYty1p/UdwwPe8sHFp4G7cyKFmYN+ bBsyoTLkNi2sLtCfcb0uuaJkE9iZ1D1QK0tWtWc+GmVusoigqGAFz1Ak8YYaF6G7Uv20 WsY9fYiBODHpeYwM7Hlh9MEDjbVDL0n6jXnFs0kKZNX9gpVACS13UVs5H98ugGwTlv4d 6KtGD/gifHzMfMq+oEo0ARqZCeJaQ69FURM8fTbDKeh6QV/hGofws2CIFVdRvp8KySS9 qjm1LDWPEXZDBJTKXdhAc0poaxwnz/McA2fmFuD0wTBP0fnBoRsPL//a/nYSmLRNWhpm a9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NDXzQ2Zh; 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 k8si1631486ilu.164.2021.09.22.02.23.22; Wed, 22 Sep 2021 02:23:35 -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=NDXzQ2Zh; 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 S234233AbhIVJWQ (ORCPT + 99 others); Wed, 22 Sep 2021 05:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbhIVJWO (ORCPT ); Wed, 22 Sep 2021 05:22:14 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17387C061574; Wed, 22 Sep 2021 02:20:45 -0700 (PDT) Date: Wed, 22 Sep 2021 11:20:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632302441; 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=rsfkG6tEJiJIjiDfatw6ng1M6I65JveUXPR34wT3l4M=; b=NDXzQ2ZhFMBccLKKuhCfQOzukC7Ajim86c8QbZXvMacspu8qDA5QtwyMSp0VpFTf7A0WMT egPSpi0dZ1Prg40S+155v4tGjv3TkM04KPcWAf/cXTojUwjJrjb/Q4F+WkY4dJbUI3oOLZ 844MM1TqlK50MEFR4cGJemFyiqcqv/qoBfzA64Hwwc/nubNkBpjkWtSBg17IEtMhCQwGyW cs71Pg65xNo0EMFa0Ms7twyBXa4WL3Q9pwcRIxKv3S1OouvM0IeA8W2mieVLcsVCKfiGVj FPtJAuqqQtlXFoc+0c//j0uXheOdK8sfmxSoRa8kPRaUsl0HMuR2OlXuAkK9Iw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632302441; 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=rsfkG6tEJiJIjiDfatw6ng1M6I65JveUXPR34wT3l4M=; b=Jgp5Vbz3h0fVYm+RYtZsaoKjGizPzC76TKJlODeEyRworbpuFf06xDcYt7vj3v9Nt1oNM5 nkdU7VZFcW6yK7BA== From: Sebastian Andrzej Siewior To: nsaenzju@redhat.com Cc: Peter Zijlstra , akpm@linux-foundation.org, frederic@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, tglx@linutronix.de, cl@linux.com, juri.lelli@redhat.com, mingo@redhat.com, mtosatti@redhat.com, nilal@redhat.com, mgorman@suse.de, ppandit@redhat.com, williams@redhat.com, anna-maria@linutronix.de, linux-rt-users@vger.kernel.org Subject: Re: [PATCH 2/6] mm/swap: Introduce alternative per-cpu LRU cache locking Message-ID: <20210922092039.2j6efnkhmfxuzjnx@linutronix.de> References: <20210921161323.607817-1-nsaenzju@redhat.com> <20210921161323.607817-3-nsaenzju@redhat.com> <20210921220358.GN4323@worktop.programming.kicks-ass.net> <0ec733daf2daaf8a6f5b1fbf56676b9892d5bf73.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0ec733daf2daaf8a6f5b1fbf56676b9892d5bf73.camel@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-22 10:47:07 [+0200], nsaenzju@redhat.com wrote: > > *why* use migrate_disable(), that's horrible! > > I was trying to be mindful of RT. They don't appreciate people taking spinlocks > just after having disabled preemption. > > I think getting local_lock(&locks->local) is my only option then. But it adds > an extra redundant spinlock in the RT+NOHZ_FULL case. spin_lock() does not disable preemption on PREEMPT_RT. You don't disables preemption on purpose or did I miss that? Sebastian