Commit fe420d87 authored by Sebastian Siewior's avatar Sebastian Siewior Committed by David S. Miller

net/core: remove explicit do_softirq() from busy_poll_stop()

Since commit 217f6974 ("net: busy-poll: allow preemption in
sk_busy_loop()") there is an explicit do_softirq() invocation after
local_bh_enable() has been invoked.
I don't understand why we need this because local_bh_enable() will
invoke do_softirq() once the softirq counter reached zero and we have
softirq-related work pending.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bdaf32c3
...@@ -5206,8 +5206,6 @@ static void busy_poll_stop(struct napi_struct *napi, void *have_poll_lock) ...@@ -5206,8 +5206,6 @@ static void busy_poll_stop(struct napi_struct *napi, void *have_poll_lock)
if (rc == BUSY_POLL_BUDGET) if (rc == BUSY_POLL_BUDGET)
__napi_schedule(napi); __napi_schedule(napi);
local_bh_enable(); local_bh_enable();
if (local_softirq_pending())
do_softirq();
} }
void napi_busy_loop(unsigned int napi_id, void napi_busy_loop(unsigned int napi_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment