Message ID | 20230314185951.603655249@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42736C6FD1F for <linux-mm@archiver.kernel.org>; Tue, 14 Mar 2023 19:01:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6B2316B0078; Tue, 14 Mar 2023 15:01:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 657E16B0075; Tue, 14 Mar 2023 15:01:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 435698E0001; Tue, 14 Mar 2023 15:01:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3129D6B0075 for <linux-mm@kvack.org>; Tue, 14 Mar 2023 15:01:11 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 037BC1A0597 for <linux-mm@kvack.org>; Tue, 14 Mar 2023 19:01:10 +0000 (UTC) X-FDA: 80568421542.17.470AEB6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf08.hostedemail.com (Postfix) with ESMTP id E41CF160030 for <linux-mm@kvack.org>; Tue, 14 Mar 2023 19:01:08 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=B2xKH1Dr; spf=pass (imf08.hostedemail.com: domain of mtosatti@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=mtosatti@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678820469; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:references:dkim-signature; bh=FePX2+VFBr01iZwaVbBM1HjdLAtX/eNoAgkcl35m848=; b=QaIw8+PtVlTCf5NmU8oJpwZS1c+YYofzb83zfw6/U6HkSr/0oH+tZ6tyhysdZhPmKgOEVL PYIuizNA58wUGMv+eyOg9fdPER/03yxz1sBkMIAON1alQtoZvKkXwISUrY5pY7iUUjuIXc RpI4/VIlUnlCfDEP9xJp2tJSfIfv3bw= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=B2xKH1Dr; spf=pass (imf08.hostedemail.com: domain of mtosatti@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=mtosatti@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678820469; a=rsa-sha256; cv=none; b=PxtaNn82s8gjomcsOBjAmqt0crsjhnkN/Y6b23GcMz0PhOlT5tZiEjSOsIsVNyVjlVK3pc aR5uhwVsSvjUs/KcZqTrFZf+1a3FA66JtPXRDqD/s3aFDXU2gy4ZOEnYTE29c/LDVYdtg6 cSDs+qjc/SRH6jqBhLiJ69gd/gZR2UE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678820468; 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: references:references; bh=FePX2+VFBr01iZwaVbBM1HjdLAtX/eNoAgkcl35m848=; b=B2xKH1DrgafkjMZlEfcadyLrpH/rsCejXqkO2GUykTUec7A1Of83Tq7yXGyuuImZXCT5iN TifRj4w5nRCDYX8TZ6/19MB7v/dkWtWZg4IVhayoR/kdSNQ5T5ArjreYWoNwmakdeyZ+Gp 6Lquf6X72rWbmbbWxuEJ6cefv+28mHQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-167-cFasFrcQOX2aPTg-iv9Y4g-1; Tue, 14 Mar 2023 15:01:04 -0400 X-MC-Unique: cFasFrcQOX2aPTg-iv9Y4g-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7B0181014708; Tue, 14 Mar 2023 19:01:03 +0000 (UTC) Received: from tpad.localdomain (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 490C8400F52; Tue, 14 Mar 2023 19:01:03 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id 5B14E4039C28D; Tue, 14 Mar 2023 16:00:44 -0300 (-03) Message-ID: <20230314185951.603655249@redhat.com> User-Agent: quilt/0.67 Date: Tue, 14 Mar 2023 15:59:17 -0300 From: Marcelo Tosatti <mtosatti@redhat.com> To: Christoph Lameter <cl@linux.com> Cc: Aaron Tomlin <atomlin@atomlin.com>, Frederic Weisbecker <frederic@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Russell King <linux@armlinux.org.uk>, Huacai Chen <chenhuacai@kernel.org>, Heiko Carstens <hca@linux.ibm.com>, x86@kernel.org, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@suse.com>, Marcelo Tosatti <mtosatti@redhat.com> Subject: [PATCH v6 03/12] this_cpu_cmpxchg: S390: switch this_cpu_cmpxchg to locked, add _local function References: <20230314185914.836510860@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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ACeGkM/ZRtjSJCG2fJNTkGaC6XwnX7tWlZY+e0IVNwp9Q/hBWcFtmPOyVi ODoNpjlF pWMElH3WaqHDmJJp/rSKCWcWl5O3B8iiOVpOgDplm5SEY/ACBjOKYsnMFJFmTRmnW4Avvtxvu8YwCEUbYKnRpzbDyP/4Wa++0VY+EeTLoc26f+q4sleghc+0LY72TDq+VH7QXGf5Me3kEY+0yML6H9qNwM+n/FuZjRbg2866sj84OqgzcyR6buRz2aVcHNaS6x9By0hB4CCAImFl/YI22U7JXVOkxTabVPQAkd8xQD30m2aIcZe7NGbkllw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
fold per-CPU vmstats remotely
|
expand
|
Index: linux-vmstat-remote/arch/s390/include/asm/percpu.h =================================================================== --- linux-vmstat-remote.orig/arch/s390/include/asm/percpu.h +++ linux-vmstat-remote/arch/s390/include/asm/percpu.h @@ -148,6 +148,11 @@ #define this_cpu_cmpxchg_4(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) #define this_cpu_cmpxchg_8(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) +#define this_cpu_cmpxchg_local_1(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) +#define this_cpu_cmpxchg_local_2(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) +#define this_cpu_cmpxchg_local_4(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) +#define this_cpu_cmpxchg_local_8(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) + #define arch_this_cpu_xchg(pcp, nval) \ ({ \ typeof(pcp) *ptr__; \
Goal is to have vmstat_shepherd to transfer from per-CPU counters to global counters remotely. For this, an atomic this_cpu_cmpxchg is necessary. Following the kernel convention for cmpxchg/cmpxchg_local, add S390's this_cpu_cmpxchg_local. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>