From patchwork Wed Oct 26 12:31:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13020523 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BB73C433FE for ; Wed, 26 Oct 2022 12:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233489AbiJZMbc (ORCPT ); Wed, 26 Oct 2022 08:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233416AbiJZMb2 (ORCPT ); Wed, 26 Oct 2022 08:31:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F517AB15 for ; Wed, 26 Oct 2022 05:31:25 -0700 (PDT) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666787484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HOwmFeqA0a/oNdvdHF9irYL7W2HF2WYB7JZql6T3ucA=; b=aaVLo0USjYTlD9swI6s8ELrsWMeBQipEk4D/t0X9ezbpfWLPY9HnpH8UGSXtg3RvIguLcH xQelqyF15XdTNahKCrsX8ZOfbGXTJs9YmIq4KtLsGiItoaRQ6TKaQzSaEc5qC8yGdJVnEy 33NYa6agzI0kxxJFAG45QJP3E0QhaWoBQBfFTME15FbwuceSgvOmhh3v30XjBKGEhA/+Q+ 8VsiSlk4lnxBVfegJ0Pv3vq5gOIWFbIq/5O8LhcKJ+luOef0a0xeGAwqQEawq0S+hCRqpu q6xGe5eDnZDC7pB3qxjshq3MzVvkx9H4RjUeGiJik20ybIvjZhilYdvKDgqveQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666787484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HOwmFeqA0a/oNdvdHF9irYL7W2HF2WYB7JZql6T3ucA=; b=Yn5fLdc71EuiSs1XGvTxFfxM9UE3IOOx0mYZbcKQ0JXSre6wGER29kE8JO2GzPf9wKl+2+ f6gdhbTW/VX+NaAA== To: bpf@vger.kernel.org Cc: Thomas Gleixner , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Hao Luo , Jiri Olsa , John Fastabend , KP Singh , Martin KaFai Lau , Song Liu , Stanislav Fomichev , Yonghong Song , Sebastian Andrzej Siewior , Peter Zijlstra Subject: [PATCH] bpf: Remove the obsolte u64_stats_fetch_*_irq() users. Date: Wed, 26 Oct 2022 14:31:10 +0200 Message-Id: <20221026123110.331690-1-bigeasy@linutronix.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net From: Thomas Gleixner Now that the 32bit UP oddity is gone and 32bit uses always a sequence count, there is no need for the fetch_irq() variants anymore. Convert to the regular interface. Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Daniel Borkmann Cc: Hao Luo Cc: Jiri Olsa Cc: John Fastabend Cc: KP Singh Cc: Martin KaFai Lau Cc: Song Liu Cc: Stanislav Fomichev Cc: Yonghong Song Cc: bpf@vger.kernel.org Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior Acked-by: Peter Zijlstra (Intel) --- kernel/bpf/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 7b373a5e861f4..71d8eb131928d 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -2117,11 +2117,11 @@ static void bpf_prog_get_stats(const struct bpf_prog *prog, st = per_cpu_ptr(prog->stats, cpu); do { - start = u64_stats_fetch_begin_irq(&st->syncp); + start = u64_stats_fetch_begin(&st->syncp); tnsecs = u64_stats_read(&st->nsecs); tcnt = u64_stats_read(&st->cnt); tmisses = u64_stats_read(&st->misses); - } while (u64_stats_fetch_retry_irq(&st->syncp, start)); + } while (u64_stats_fetch_retry(&st->syncp, start)); nsecs += tnsecs; cnt += tcnt; misses += tmisses;