git: dm_target_crypt - use mpipe, add module magic

Alex Hornung alexh at crater.dragonflybsd.org
Wed Nov 24 12:56:28 PST 2010


commit ba65ac128d51ebcd3d09242c254e1cd5e38c90d6
Author: Alex Hornung <ahornung at gmail.com>
Date:   Wed Nov 24 19:55:04 2010 +0000

    dm_target_crypt - use mpipe, add module magic
    
    * Switch the kmallocs in the I/O path to using mpipe with a bare minimum
      of two preallocated elements, for each read and write. This finally
      allows for an encrypted swap without any issues with memory pressure.
      It might also improve performance, but it is not the aim of the
      commit.
    
    * Add some module magic to dm and make use of it in dm_target_crypt.
    
    * (temporarily) remove the old module magic.

Summary of changes:
 sys/dev/disk/dm/dm.h                 |   17 ++--
 sys/dev/disk/dm/dm_target.c          |   18 +----
 sys/dev/disk/dm/dm_target_crypt.c    |  170 +++++++++++++++++++--------------
 sys/dev/disk/dm/dm_target_error.c    |   58 ------------
 sys/dev/disk/dm/dm_target_mirror.c   |   58 ------------
 sys/dev/disk/dm/dm_target_snapshot.c |   84 -----------------
 sys/dev/disk/dm/dm_target_stripe.c   |   56 -----------
 sys/dev/disk/dm/dm_target_zero.c     |   58 ------------
 8 files changed, 107 insertions(+), 412 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ba65ac128d51ebcd3d09242c254e1cd5e38c90d6


-- 
DragonFly BSD source repository





More information about the Commits mailing list