]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geli: enable direct dispatch
authorasomers <asomers@FreeBSD.org>
Wed, 8 Jul 2020 17:12:12 +0000 (17:12 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 8 Jul 2020 17:12:12 +0000 (17:12 +0000)
commitbd9a5e4721b854d4d652c3a51c0e0827e1811b93
tree912de3aea17a280a6c97a7b0c4899a5d6aae6f32
parentbf4c102a459263529ec1974b005151d3f04c3816
geli: enable direct dispatch

geli does all of its crypto operations in a separate thread pool, so
g_eli_start, g_eli_read_done, and g_eli_write_done don't actually do very
much work. Enabling direct dispatch eliminates the g_up/g_down bottlenecks,
doubling IOPs on my system. This change does not affect the thread pool.

Reviewed by: markj
MFC after: 2 weeks
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D25587
sys/geom/eli/g_eli.c
tests/sys/geom/class/eli/Makefile
tests/sys/geom/class/eli/reentrancy_test.sh [new file with mode: 0755]