Skip to content

Commit fe420d8

Browse files
Sebastian Siewiordavem330
authored andcommitted
net/core: remove explicit do_softirq() from busy_poll_stop()
Since commit 217f697 ("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: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bdaf32c commit fe420d8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/core/dev.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5206,8 +5206,6 @@ static void busy_poll_stop(struct napi_struct *napi, void *have_poll_lock)
52065206
if (rc == BUSY_POLL_BUDGET)
52075207
__napi_schedule(napi);
52085208
local_bh_enable();
5209-
if (local_softirq_pending())
5210-
do_softirq();
52115209
}
52125210

52135211
void napi_busy_loop(unsigned int napi_id,

0 commit comments

Comments
 (0)