All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.6 0/2] fix do_softirq_post_smp_call_flush warnings caused by NET_RX_SOFTIRQ
@ 2025-12-29  7:53 wen.yang
  2025-12-29  7:53 ` [PATCH 6.6 1/2] net: Remove conditional threaded-NAPI wakeup based on task state wen.yang
  2025-12-29  7:53 ` [PATCH 6.6 2/2] net: Allow to use SMP threads for backlog NAPI wen.yang
  0 siblings, 2 replies; 3+ messages in thread
From: wen.yang @ 2025-12-29  7:53 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: stable, linux-kernel, Wen Yang

From: Wen Yang <wen.yang@linux.dev>

do_softirq_post_smp_call_flush() on PREEMPT_RT kernels carries a
WARN_ON_ONCE() for any SOFTIRQ being raised from an SMP-call-function.
Since do_softirq_post_smp_call_flush() is called with preempt disabled,
raising a SOFTIRQ during flush_smp_call_function_queue() can lead to
longer preempt disabled sections.

RPS distributes network processing load across CPUs by enqueuing
packets on a remote CPU's backlog and raising NET_RX_SOFTIRQ to
process them.
    
The following patches fixes this issue.

Sebastian Andrzej Siewior (2):
  net: Remove conditional threaded-NAPI wakeup based on task state.
  net: Allow to use SMP threads for backlog NAPI.

 net/core/dev.c | 162 +++++++++++++++++++++++++++++++++++--------------
 1 file changed, 115 insertions(+), 47 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2025-12-29  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-29  7:53 [PATCH 6.6 0/2] fix do_softirq_post_smp_call_flush warnings caused by NET_RX_SOFTIRQ wen.yang
2025-12-29  7:53 ` [PATCH 6.6 1/2] net: Remove conditional threaded-NAPI wakeup based on task state wen.yang
2025-12-29  7:53 ` [PATCH 6.6 2/2] net: Allow to use SMP threads for backlog NAPI wen.yang

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.