dm_target_crypt - use per-instance mpipes, KTR
authorAlex Hornung <ahornung@gmail.com>
Wed, 13 Jul 2011 20:41:43 +0000 (21:41 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 16 Jul 2011 17:36:29 +0000 (18:36 +0100)
commitd536b4086d659f000514219f614113f8dd2b9604
tree8530ede9ef33cc7a3e0c6d7644f8228fc9f7b172
parent2d0db798e349161b042a73b87a2d1b4eae417c46
dm_target_crypt - use per-instance mpipes, KTR

 * Add KTR support (KTR_DMCRYPT) to monitor the read and write strategy
   paths.

 * Make the mpipes for reads and writes per-instance instead of for all
   targets. This solves the issue where two instances are interdependent
   and one starves the other, which will cause a deadlock. This way each
   instance is guaranteed to have some buffers.

 * Change the maximum size of the mpipes from 0.5% of physical memory to
   0.2%, as this limit is now per-instance and an average of 2 or 3
   crypt targets sounds reasonable.
sys/conf/options
sys/config/LINT
sys/config/LINT64
sys/dev/disk/dm/targets/crypt/Makefile
sys/dev/disk/dm/targets/crypt/dm_target_crypt.c