Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1039091pxb; Tue, 17 Aug 2021 02:13:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj9fBIZWIJiHzONESg8T3UYGyTqoBKuhkZCn5eyH3/U5j5+NHglFh7S10iTqEp/NJq4uk+ X-Received: by 2002:a92:c242:: with SMTP id k2mr1168407ilo.33.1629191611884; Tue, 17 Aug 2021 02:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629191611; cv=none; d=google.com; s=arc-20160816; b=0skW3KAsm/3lC5KhXjpX9nLShDrleFusCCPKxCwA0htHSIptzQ5IHk/ydrQtwoc+Hk OsdGF1uy5GyPnWND/QYLm/L4VaxLLeTBV3pLCCsKAqoTX43rnl1eWNneUhTvi0z0fQFn NMF5bqyDG6hR34j3AHkE7u6YsbQgNDpfYaOdrW6Qej8YnACRVdWJ47zb03lq3V9i8H1L j8gax863VpGqT+X0bGDPYiTK93Oo0cClWkz9JjyAYohEWd/BgLaD7BMost4h3kw+sGer tyRfaVSVMqIZrVlFEqyKlEtO3rYb62cNRhJmjwPSZmKPvj9b6hiC0pRjyMi68o30rTb5 Fq/w== 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=Vna3ay+6qfC6a6U/7R3m6EAXb7rtIYGsPklTZxXUqeY=; b=kfyiOamVKZ1J3GsLKCC/EX5v6ZTB7eeJAyhHJLweM/Cbv1IlyluuEKhdt1h1wqPqcM ZtO30hr87oRt5CuWwmPU+aVVopxYaIXAlgfxM0vtGTuVR/Tm9STLKTblEVP7+ApKR62b RIRBNbDTX9/SuLLHc3wNj0fi4bSExBObuZUtXR9NUXi1Kh9VJ9OmSo1k3JNE4Bs/wB+q USFOXkhDLXw2JvdYAtk2n6tdiWzFolMJKJFtWW1tRMMFl8tdYhtFJnsKKXVmmSqhmMa/ b/GqHo61/XqyFktHSY5DTJap1flTbeO46eDwA3kRIPbJfmyXY0AB/soWXf48XP9QE0pm /xPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Iwn1N4Zz; dkim=neutral (no key) header.i=@linutronix.de header.b=pOyfrq8a; 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 d7si1823284iop.31.2021.08.17.02.13.19; Tue, 17 Aug 2021 02:13:31 -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=Iwn1N4Zz; dkim=neutral (no key) header.i=@linutronix.de header.b=pOyfrq8a; 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 S235422AbhHQJNB (ORCPT + 99 others); Tue, 17 Aug 2021 05:13:01 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:59020 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234347AbhHQJNA (ORCPT ); Tue, 17 Aug 2021 05:13:00 -0400 Date: Tue, 17 Aug 2021 11:12:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1629191546; 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=Vna3ay+6qfC6a6U/7R3m6EAXb7rtIYGsPklTZxXUqeY=; b=Iwn1N4ZzjrNzw92s+RCTec9IgmEdVl7DLCla5o3/SqiTq19vJxrd5Zc/9f4+OMPo4AgEPA OAYD3zOKnHAxZxvUSZKaynf52bSYCeAhGlTGn1Rv9ulBGt+EijzKl5b/pqQxqKumnYD/D2 ELS0zpsJi5XrNNKHmHM7a8xorkrffLimxaRDuJP+Z9A6udR87J2PBSZZ+aGnvJRlk8gUeS bLqsIoMR1OrqPWeB8L6PVDO/d+84jTRoAhsopDzqfCCMFVsEiaOA3MTahAUZOg652sHqej b5IETeIAE4DhCBosKePMIVXYDuXEqoMJePr1QwzGoaFTxGelEOUj6wiO6Wne7A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1629191546; 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=Vna3ay+6qfC6a6U/7R3m6EAXb7rtIYGsPklTZxXUqeY=; b=pOyfrq8aIKWTzmlthQ2kwy0IlXHm+1Ghsxpzs6vbG40odt18B9tJSkmGyg/iv7HcW5GQF5 M3Z2Y5QSfIMRAMDA== From: Sebastian Andrzej Siewior To: Vlastimil Babka Cc: Sven Eckelmann , akpm@linux-foundation.org, brouer@redhat.com, cl@linux.com, efault@gmx.de, iamjoonsoo.kim@lge.com, jannh@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mgorman@techsingularity.net, penberg@kernel.org, rientjes@google.com, tglx@linutronix.de, Stephen Rothwell , Peter Zijlstra Subject: Re: [PATCH v4 35/35] mm, slub: convert kmem_cpu_slab protection to local_lock Message-ID: <20210817091224.nqnrro34cyb67chj@linutronix.de> References: <2666777.vCjUEy5FO1@sven-desktop> <7329198a-2a4e-ebc2-abf8-f7f38f00d5e1@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7329198a-2a4e-ebc2-abf8-f7f38f00d5e1@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-17 10:37:48 [+0200], Vlastimil Babka wrote: > OK reproduced. Thanks, will investigate. With the local_lock at the top, the needed alignment gets broken for dbl cmpxchg. On RT it was working ;) diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index b5bcac29b979c..cd14aa1f9bc3c 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -42,9 +42,9 @@ enum stat_item { NR_SLUB_STAT_ITEMS }; struct kmem_cache_cpu { - local_lock_t lock; /* Protects the fields below except stat */ void **freelist; /* Pointer to next available object */ unsigned long tid; /* Globally unique transaction id */ + local_lock_t lock; /* Protects the fields below except stat */ struct page *page; /* The slab from which we are allocating */ #ifdef CONFIG_SLUB_CPU_PARTIAL struct page *partial; /* Partially allocated frozen slabs */ Sebastian