summaryrefslogtreecommitdiffhomepage
path: root/src/queueing.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-16 02:21:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-16 02:24:23 +0200
commita63830c6bbbf251765a5caee4111835048665f23 (patch)
tree0104504b899b0c42aa7589fe7f5a80a96b5daba5 /src/queueing.c
parentfaa6c83426891059b2648b2b799e64bbfaf39a51 (diff)
queueing: remove useless spinlocks on sc
Since these are the only consumers, there's no need for locking. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/queueing.c')
-rw-r--r--src/queueing.c2
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);
}