Re: [Softirq] a76eadba0d: WARNING:at_net/mac80211/rx.c:#ieee80211_rx_napi[mac80211]

From: Thomas Gleixner
Date: Fri Jul 24 2020 - 19:31:42 EST


jun qian <qianjun.kernel@xxxxxxxxx> writes:
> I have two questions that need to be discussed.
>
> 1. If the __do_sofrirq() is executed in the ksoftirqd, we may not need
> to check the timeout in the loop.
> 2. Both the invoke_softirq() and run_ksoftirqd() will execute
> __do_sofirq, they all execute the same codeï
> when it is in the ksoftirqd, Do we need to wake up ksoftirqd in
> the process context according to
> max_restart and MAX_SOFTIRQ_TIME. In my opinion, If we use a flag
> to distinguish where
> __do_softirq() is called from, we can do what is most suitable
> for __do_softirq based on this flag.

You answered your questions yourself :)