]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4/route: Use this_cpu_inc() for stats on PREEMPT_RT
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 12 May 2025 09:27:24 +0000 (11:27 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 May 2025 13:23:30 +0000 (15:23 +0200)
commit1c0829788a6e6e165846b9bedd0b908ef16260b6
tree3cdf044e94bb3eef22e379d28bdc2b3ae3c1f975
parentc99dac52ffad5df88c9c52ab2008b182743bdcc1
ipv4/route: Use this_cpu_inc() for stats on PREEMPT_RT

The statistics are incremented with raw_cpu_inc() assuming it always
happens with bottom half disabled. Without per-CPU locking in
local_bh_disable() on PREEMPT_RT this is no longer true.

Use this_cpu_inc() on PREEMPT_RT for the increment to not worry about
preemption.

Cc: David Ahern <dsahern@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://patch.msgid.link/20250512092736.229935-4-bigeasy@linutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/route.c