+1
-1
crypto/acompress.c
+1
-1
crypto/acompress.c
+1
-1
crypto/aead.c
+1
-1
crypto/aead.c
+1
-1
crypto/ahash.c
+1
-1
crypto/ahash.c
+1
-1
crypto/akcipher.c
+1
-1
crypto/akcipher.c
+3
crypto/algapi.c
+3
crypto/algapi.c
···
961
961
void crypto_enqueue_request_head(struct crypto_queue *queue,
962
962
struct crypto_async_request *request)
963
963
{
964
+
if (unlikely(queue->qlen >= queue->max_qlen))
965
+
queue->backlog = queue->backlog->prev;
966
+
964
967
queue->qlen++;
965
968
list_add(&request->list, &queue->list);
966
969
}
+3
-3
crypto/crypto_engine.c
+3
-3
crypto/crypto_engine.c
···
129
129
if (!engine->retry_support)
130
130
engine->cur_req = async_req;
131
131
132
-
if (backlog)
133
-
crypto_request_complete(backlog, -EINPROGRESS);
134
-
135
132
if (engine->busy)
136
133
was_busy = true;
137
134
else
···
214
217
crypto_request_complete(async_req, ret);
215
218
216
219
retry:
220
+
if (backlog)
221
+
crypto_request_complete(backlog, -EINPROGRESS);
222
+
217
223
/* If retry mechanism is supported, send new requests to engine */
218
224
if (engine->retry_support) {
219
225
spin_lock_irqsave(&engine->queue_lock, flags);
+1
-1
crypto/kpp.c
+1
-1
crypto/kpp.c
+1
-1
crypto/rng.c
+1
-1
crypto/rng.c
+1
-1
crypto/scompress.c
+1
-1
crypto/scompress.c
+1
-1
crypto/shash.c
+1
-1
crypto/shash.c
+1
-1
crypto/skcipher.c
+1
-1
crypto/skcipher.c
+1
-1
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
+1
-1
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c