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/queueing.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 'src/queueing.c')
-rw-r--r-- | src/queueing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queueing.c b/src/queueing.c index 85dea6b..f33395e 100644 --- a/src/queueing.c +++ b/src/queueing.c @@ -41,6 +41,6 @@ void packet_queue_free(struct crypt_queue *queue, bool multicore) { if (multicore) free_percpu(queue->worker); - WARN_ON(!ptr_ring_empty_bh(&queue->ring)); + WARN_ON(!__ptr_ring_empty(&queue->ring)); ptr_ring_cleanup(&queue->ring, NULL); } |