diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-16 02:21:58 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-16 02:24:23 +0200 |
commit | b7b193f499d4acd8a620163ec358c0830e856c9e (patch) | |
tree | 1d020d48074bb844750210cbb91d2b9a12461275 /src/send.c | |
parent | tools: getentropy requires 10.12 (diff) | |
download | wireguard-monolithic-historical-b7b193f499d4acd8a620163ec358c0830e856c9e.tar.xz wireguard-monolithic-historical-b7b193f499d4acd8a620163ec358c0830e856c9e.zip |
queueing: remove useless spinlocks on sc
Since these are the only consumers, there's no need for locking.
Diffstat (limited to '')
-rw-r--r-- | src/send.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -223,7 +223,6 @@ void packet_tx_worker(struct work_struct *work) struct sk_buff *first; enum packet_state state; - spin_lock_bh(&queue->ring.consumer_lock); while ((first = __ptr_ring_peek(&queue->ring)) != NULL && (state = atomic_read(&PACKET_CB(first)->state)) != PACKET_STATE_UNCRYPTED) { __ptr_ring_discard_one(&queue->ring); peer = PACKET_PEER(first); @@ -237,7 +236,6 @@ void packet_tx_worker(struct work_struct *work) noise_keypair_put(keypair); peer_put(peer); } - spin_unlock_bh(&queue->ring.consumer_lock); } void packet_encrypt_worker(struct work_struct *work) |