Subject: [PATCH 4/4] bpf: Remove the obsolte u64_stats_fetch_*_irq() users.
From: Thomas Gleixner <[email-masked]>
Date: Thu, 25 Aug 2022 16:17:57 +0200

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 <[email-masked]>
Cc: Andrii Nakryiko <[email-masked]>
Cc: Daniel Borkmann <[email-masked]>
Cc: Hao Luo <[email-masked]>
Cc: Jiri Olsa <[email-masked]>
Cc: John Fastabend <[email-masked]>
Cc: KP Singh <[email-masked]>
Cc: Martin KaFai Lau <[email-masked]>
Cc: Song Liu <[email-masked]>
Cc: Stanislav Fomichev <[email-masked]>
Cc: Yonghong Song <[email-masked]>
Cc: [email-masked]
Signed-off-by: Thomas Gleixner <[email-masked]>
Signed-off-by: Sebastian Andrzej Siewior <[email-masked]>
Acked-by: Peter Zijlstra (Intel) <[email-masked]>
---
 kernel/bpf/syscall.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/kernel/bpf/syscall.c
+++ b/kernel/bpf/syscall.c
@@ -2115,11 +2115,11 @@ static void bpf_prog_get_stats(const str
 
 		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;