Linux Device Mapper development
 help / color / mirror / Atom feed
From: majianpeng <majianpeng@gmail.com>
To: NeilBrown <neilb@suse.de>, agk <agk@redhat.com>
Cc: linux-raid <linux-raid@vger.kernel.org>, dm-devel <dm-devel@redhat.com>
Subject: dm: When stoping dm-raid, it call dm_md_stop rather than md_stop to do clear-up work
Date: Thu, 15 Nov 2012 16:47:04 +0800	[thread overview]
Message-ID: <201211151646579059296@gmail.com> (raw)

Because func md_stop can't clear up all resource about dm-raid.So Add a
func dm_md_stop to do it.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
 drivers/md/dm-raid.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 45d94a7..171cd71 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -1200,7 +1200,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
 	return 0;
 
 size_mismatch:
-	md_stop(&rs->md);
+	dm_md_stop(&rs->md);
 bad:
 	context_free(rs);
 
@@ -1212,7 +1212,7 @@ static void raid_dtr(struct dm_target *ti)
 	struct raid_set *rs = ti->private;
 
 	list_del_init(&rs->callbacks.list);
-	md_stop(&rs->md);
+	dm_md_stop(&rs->md);
 	context_free(rs);
 }
 
-- 
1.7.9.5

                 reply	other threads:[~2012-11-15  8:47 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=201211151646579059296@gmail.com \
    --to=majianpeng@gmail.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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