Skip to content
Snippets Groups Projects
Commit 341a64c7 authored by Vincent Whitchurch's avatar Vincent Whitchurch Committed by Herbert Xu
Browse files

crypto: axis - move request unmap outside of the queue lock


The request unmap and bounce buffer copying is currently unnecessarily
done while holding the queue spin lock.

Signed-off-by: default avatarLars Persson <larper@axis.com>
Signed-off-by: default avatarVincent Whitchurch <rabinv@axis.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5997a245
No related branches found
No related tags found
No related merge requests found
......@@ -2127,11 +2127,7 @@ static void artpec6_crypto_task(unsigned long data)
list_move_tail(&req->list, &complete_done);
artpec6_crypto_dma_unmap_all(req);
artpec6_crypto_copy_bounce_buffers(req);
ac->pending_count--;
artpec6_crypto_common_destroy(req);
}
artpec6_crypto_process_queue(ac, &complete_in_progress);
......@@ -2142,6 +2138,10 @@ static void artpec6_crypto_task(unsigned long data)
* to allow new request submissions from the callbacks.
*/
list_for_each_entry_safe(req, n, &complete_done, list) {
artpec6_crypto_dma_unmap_all(req);
artpec6_crypto_copy_bounce_buffers(req);
artpec6_crypto_common_destroy(req);
req->complete(req->req);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment