All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bpf: Remove the obsolte u64_stats_fetch_*_irq() users.
@ 2022-10-26 12:31 Sebastian Andrzej Siewior
  2022-10-31 22:50 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2022-10-26 12:31 UTC (permalink / raw)
  To: bpf
  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

From: Thomas Gleixner <tglx@linutronix.de>

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 <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Hao Luo <haoluo@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: KP Singh <kpsingh@kernel.org>
Cc: Martin KaFai Lau <martin.lau@linux.dev>
Cc: Song Liu <song@kernel.org>
Cc: Stanislav Fomichev <sdf@google.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: bpf@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 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;
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bpf: Remove the obsolte u64_stats_fetch_*_irq() users.
  2022-10-26 12:31 [PATCH] bpf: Remove the obsolte u64_stats_fetch_*_irq() users Sebastian Andrzej Siewior
@ 2022-10-31 22:50 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-10-31 22:50 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: bpf, tglx, ast, andrii, daniel, haoluo, jolsa, john.fastabend,
	kpsingh, martin.lau, song, sdf, yhs, peterz

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Wed, 26 Oct 2022 14:31:10 +0200 you wrote:
> From: Thomas Gleixner <tglx@linutronix.de>
> 
> 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.
> 
> [...]

Here is the summary with links:
  - bpf: Remove the obsolte u64_stats_fetch_*_irq() users.
    https://git.kernel.org/bpf/bpf-next/c/97c4090badca

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-31 22:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 12:31 [PATCH] bpf: Remove the obsolte u64_stats_fetch_*_irq() users Sebastian Andrzej Siewior
2022-10-31 22:50 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.