From a63830c6bbbf251765a5caee4111835048665f23 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 16 Jun 2018 02:21:58 +0200 Subject: queueing: remove useless spinlocks on sc Since these are the only consumers, there's no need for locking. Signed-off-by: Jason A. Donenfeld --- src/receive.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/receive.c') diff --git a/src/receive.c b/src/receive.c index 27d3d04..99d6b19 100644 --- a/src/receive.c +++ b/src/receive.c @@ -378,7 +378,6 @@ void packet_rx_worker(struct work_struct *work) bool free; local_bh_disable(); - spin_lock_bh(&queue->ring.consumer_lock); while ((skb = __ptr_ring_peek(&queue->ring)) != NULL && (state = atomic_read(&PACKET_CB(skb)->state)) != PACKET_STATE_UNCRYPTED) { __ptr_ring_discard_one(&queue->ring); peer = PACKET_PEER(skb); @@ -406,7 +405,6 @@ next: if (unlikely(free)) dev_kfree_skb(skb); } - spin_unlock_bh(&queue->ring.consumer_lock); local_bh_enable(); } -- cgit v1.2.3