From: Yi Zhang <yizhan@redhat.com>
To: dm-devel@redhat.com
Cc: ejt@redhat.com, snitzer@redhat.com, Yi Zhang <yizhan@redhat.com>
Subject: [PATCH] dm cache policy smq: mv module alias: dm-cache-default to SMQ
Date: Wed, 12 Aug 2015 19:22:43 +0800 [thread overview]
Message-ID: <1439378563-14993-1-git-send-email-yizhan@redhat.com> (raw)
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
reply other threads:[~2015-08-12 11:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439378563-14993-1-git-send-email-yizhan@redhat.com \
--to=yizhan@redhat.com \
--cc=dm-devel@redhat.com \
--cc=ejt@redhat.com \
--cc=snitzer@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).