From 026b865cfd1e65e627037a0699db456dad1b9046 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 21 Jun 2018 22:42:57 +0200 Subject: 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 Signed-off-by: Jason A. Donenfeld --- src/receive.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3