dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH] dm cache policy smq: mv module alias: dm-cache-default to SMQ
@ 2015-08-12 11:22 Yi Zhang
  0 siblings, 0 replies; only message in thread
From: Yi Zhang @ 2015-08-12 11:22 UTC (permalink / raw)
  To: dm-devel; +Cc: ejt, snitzer, Yi Zhang

When creating dm-cache with the default policy, it will call
request_module("dm-cache-default") to register the default policy.
But the dm-cache-default is for dm-cache-mq which is incorrect, so
move the module alias: dm-cache-default to SMQ.

Signed-off-by: Yi Zhang <yizhan@redhat.com>
---
 drivers/md/dm-cache-policy-mq.c  | 2 --
 drivers/md/dm-cache-policy-smq.c | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/md/dm-cache-policy-mq.c b/drivers/md/dm-cache-policy-mq.c
index 3281437..aa1b41c 100644
--- a/drivers/md/dm-cache-policy-mq.c
+++ b/drivers/md/dm-cache-policy-mq.c
@@ -1471,5 +1471,3 @@ module_exit(mq_exit);
 MODULE_AUTHOR("Joe Thornber <dm-devel@redhat.com>");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("mq cache policy");
-
-MODULE_ALIAS("dm-cache-default");
diff --git a/drivers/md/dm-cache-policy-smq.c b/drivers/md/dm-cache-policy-smq.c
index d80506c..1ffbeb1 100644
--- a/drivers/md/dm-cache-policy-smq.c
+++ b/drivers/md/dm-cache-policy-smq.c
@@ -1757,3 +1757,5 @@ module_exit(smq_exit);
 MODULE_AUTHOR("Joe Thornber <dm-devel@redhat.com>");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("smq cache policy");
+
+MODULE_ALIAS("dm-cache-default");
-- 
1.9.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-12 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12 11:22 [PATCH] dm cache policy smq: mv module alias: dm-cache-default to SMQ Yi Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).