diff options
| author | knakahara <knakahara@NetBSD.org> | 2017-04-05 08:51:04 +0000 |
|---|---|---|
| committer | knakahara <knakahara@NetBSD.org> | 2017-04-05 08:51:04 +0000 |
| commit | c0eddacea97d499580d8ad2be574000fc2807f10 (patch) | |
| tree | 3d55df143ca9cb1a22176508880f2a5c9d930fc3 /sys/dev/raidframe | |
| parent | f3116c0fe4f95486772a1b873c6d3bc0e5844464 (diff) | |
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.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions
