summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-21 22:42:57 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-22 04:09:39 +0200
commit026b865cfd1e65e627037a0699db456dad1b9046 (patch)
treef200f7fd2878d3c29d95d2e0fcffd872260bc148 /src
parent8a3b6d0b0c365437be8e35a725a689697168836e (diff)
receive: don't toggle bh
This had a bad performance impact. We'll probably need to revisit this later, but for now, let's not introduce a regression. Reported-by: Lonnie Abelbeck <lonnie@abelbeck.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r--src/receive.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/receive.c b/src/receive.c
index 92a47c8..ac23e47 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -405,12 +405,6 @@ next:
peer_put(peer);
if (unlikely(free))
dev_kfree_skb(skb);
-
- /* Don't totally kill scheduling latency by keeping preemption disabled forever. */
- if (need_resched()) {
- local_bh_enable();
- local_bh_disable();
- }
}
local_bh_enable();
}