kernel - dm_target_crypt - use CRYPTO_F_BATCH
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Aug 2010 02:29:54 +0000 (19:29 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Aug 2010 02:29:54 +0000 (19:29 -0700)
commit57ffb1182f4df85afb9b455621d3706d9854ac8c
tree74f7063a30499cb66cb9e88fe0f803b0a2427466
parenta0419b3343492f40c07184aa78b395501b813e14
kernel - dm_target_crypt - use CRYPTO_F_BATCH

* Allow crypto requests to be dispatched to multiple crypto support
  threads instead of executing the operation synchronously.

* Greatly improves crypto performance on SMP boxes.  25MB/s -> 80MB/s on
  my quad.

* Currently the ivgen code gets in the way because it must be executed
  synchronously before the data crypto op can be initiated.  Further
  performance improvements are possible.
sys/dev/disk/dm/dm_target_crypt.c