summaryrefslogtreecommitdiff
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2008-04-24 20:43:49 (GMT)
committerAlasdair G Kergon <agk@redhat.com>2008-04-25 12:26:52 (GMT)
commit945fa4d283a3a472186c11028f6fea1e77a91d14 (patch)
tree99af5b3623665680417a61a43f5effcfbeba903b /drivers/md/dm.c
parent08d8757a4d52d21d825b9170af36f2696d1da1a8 (diff)
downloadlinux-fsl-qoriq-945fa4d283a3a472186c11028f6fea1e77a91d14.tar.xz
dm kcopyd: remove redundant client counting
Remove client counting code that is no longer needed. Initialization and destruction is made globally from dm_init and dm_exit and is not based on client counts. Initialization allocates only one empty slab cache, so there is no negative impact from performing the initialization always, regardless of whether some client uses kcopyd or not. 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 6617ce4..11f4ffe 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -204,6 +204,7 @@ static int (*_inits[])(void) __initdata = {
dm_target_init,
dm_linear_init,
dm_stripe_init,
+ dm_kcopyd_init,
dm_interface_init,
};
@@ -212,6 +213,7 @@ static void (*_exits[])(void) = {
dm_target_exit,
dm_linear_exit,
dm_stripe_exit,
+ dm_kcopyd_exit,
dm_interface_exit,
};