Searched hist:158827 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11.0-release/sys/opencrypto/
H A Dcrypto.cdiff 158827 Mon May 22 10:05:23 MDT 2006 pjd 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.

Completed in 52 milliseconds