Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/opencrypto
Module Name: src
Committed By: knakahara
Date: Wed Apr 5 08:51:04 UTC 2017
Modified Files:
src/sys/opencrypto: crypto.c cryptodev.c
Log Message:
fix processes accessing /dev/crypto stall when over three processes run with a hardware encryption driver
The process has stalled at cv_wait(&crp->crp_cv) because cryptodev_cb()
is not called as cryptoret() kthread keep waiting at cv_wait(&cryptoret_cv).
Previous opencrypto implementation assumes the thread from cryptodev.c
does all processing in the same context, so skips enqueueing and sending
cryptoret_cv. However, the context can be switched, e.g. when we use
a hardware encryption driver.
And add debug messages.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/opencrypto/crypto.c
cvs rdiff -u -r1.85 -r1.86 src/sys/opencrypto/cryptodev.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index