summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-12-10 23:51:57 +0000
committerAlasdair G Kergon <agk@redhat.com>2009-12-10 23:51:57 +0000
commit952b355760c196ec014dd0b6878f85a11496e3da (patch)
tree0a6907fa6dce2bac8afdc2efea774f19bdbb9a17 /drivers/md/dm.c
parent542da317668c35036e8471822a564b609d05af66 (diff)
downloadlinux-952b355760c196ec014dd0b6878f85a11496e3da.tar.gz
linux-952b355760c196ec014dd0b6878f85a11496e3da.tar.bz2
linux-952b355760c196ec014dd0b6878f85a11496e3da.zip
dm io: use slab for struct io
Allocate "struct io" from a slab. This patch changes dm-io, so that "struct io" is allocated from a slab cache. It used to be allocated with kmalloc. Allocating from a slab will be needed for the next patch, because it requires a special alignment of "struct io" and kmalloc cannot meet this alignment. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 724efc63904d..473f0c3c0192 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -275,6 +275,7 @@ static int (*_inits[])(void) __initdata = {
dm_target_init,
dm_linear_init,
dm_stripe_init,
+ dm_io_init,
dm_kcopyd_init,
dm_interface_init,
};
@@ -284,6 +285,7 @@ static void (*_exits[])(void) = {
dm_target_exit,
dm_linear_exit,
dm_stripe_exit,
+ dm_io_exit,
dm_kcopyd_exit,
dm_interface_exit,
};