freebsd-dev/sys/opencrypto
Pawel Jakub Dawidek 3a865c827a Improve the code responsible for waking up the crypto_proc thread.
Checking if the queues are empty is not enough for the crypto_proc thread
(it is enough for the crypto_ret_thread), because drivers can be marked
as blocked. In a situation where we have operations related to different
crypto drivers in the queue, it is possible that one driver is marked as
blocked. In this case, the queue will not be empty and we won't wakeup
the crypto_proc thread to execute operations for the others drivers.

Simply setting a global variable to 1 when we goes to sleep and setting
it back to 0 when we wake up is sufficient. The variable is protected
with the queue lock.
2006-05-22 10:05:23 +00:00
..
cast.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
cast.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
castsb.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
criov.c - Implement cuio_apply(), an equivalent to m_apply(9). 2006-05-17 17:56:00 +00:00
crypto_if.m /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
crypto.c Improve the code responsible for waking up the crypto_proc thread. 2006-05-22 10:05:23 +00:00
cryptodev.c - Fix a very old bug in HMAC/SHA{384,512}. When HMAC is using SHA384 2006-05-17 18:24:17 +00:00
cryptodev.h Document how we synchronize access to the fields in the cryptocap 2006-05-22 07:49:42 +00:00
cryptosoft.c - Fix a very old bug in HMAC/SHA{384,512}. When HMAC is using SHA384 2006-05-17 18:24:17 +00:00
cryptosoft.h - Fix a very old bug in HMAC/SHA{384,512}. When HMAC is using SHA384 2006-05-17 18:24:17 +00:00
deflate.c malloc.h relies on param.h for a definition of MAXCPU. I guess that there is 2005-05-30 05:01:44 +00:00
deflate.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
rmd160.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
rmd160.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
skipjack.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
skipjack.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
xform.c - Fix a very old bug in HMAC/SHA{384,512}. When HMAC is using SHA384 2006-05-17 18:24:17 +00:00
xform.h - Fix a very old bug in HMAC/SHA{384,512}. When HMAC is using SHA384 2006-05-17 18:24:17 +00:00