Message ID | 20221026123110.331690-1-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 97c4090badca743451c3798f1c1846e9f3f252de |
Delegated to: | BPF |
Headers | show |
Series | bpf: Remove the obsolte u64_stats_fetch_*_irq() users. | expand |
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!
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;