Don't set cc_kqblocked twice and don't increment cryptostats.cs_kblocks
twice if we call crypto_kinvoke() from crypto_proc thread. This change also removes unprotected access to cc_kqblocked field (CRYPTO_Q_LOCK() should be used for protection).
This commit is contained in:
parent
3aaf7145c5
commit
04d8f36a4f
@ -773,9 +773,7 @@ crypto_kinvoke(struct cryptkop *krp)
|
||||
CRYPTO_DRIVER_LOCK();
|
||||
if (error == ERESTART) {
|
||||
cap->cc_koperations--;
|
||||
cap->cc_kqblocked = 1;
|
||||
CRYPTO_DRIVER_UNLOCK();
|
||||
cryptostats.cs_kblocks++;
|
||||
return (error);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user