mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Thornber <thornber@sistina.com>
To: dm-devel@sistina.com
Cc: Kevin Corry <kevcorry@us.ibm.com>,
	Linux Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [dm-devel] Re: [RFC 3/3] dm: v4 ioctl interface
Date: Wed, 2 Jul 2003 12:00:16 +0100	[thread overview]
Message-ID: <20030702110016.GD6243@fib011235813.fsnet.co.uk> (raw)
In-Reply-To: <20030702085951.GB410@fib011235813.fsnet.co.uk>

Move unregister_with_devfs() to before the rename.
--- diff/drivers/md/dm-ioctl-v4.c	2003-07-02 11:35:31.000000000 +0100
+++ source/drivers/md/dm-ioctl-v4.c	2003-07-02 11:34:24.000000000 +0100
@@ -301,13 +301,14 @@
 	/*
 	 * rename and move the name cell.
 	 */
+	unregister_with_devfs(hc);
+
 	list_del(&hc->name_list);
 	old_name = hc->name;
 	hc->name = new_name;
 	list_add(&hc->name_list, _name_buckets + hash_str(new_name));
 
 	/* rename the device node in devfs */
-	unregister_with_devfs(hc);
 	register_with_devfs(hc);
 
 	up_write(&_hash_lock);

  parent reply	other threads:[~2003-07-02 10:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01 14:58 [RFC] device-mapper v4 ioctl interface implementation Joe Thornber
2003-07-01 15:01 ` [RFC 1/3] dm: fix memory leak Joe Thornber
2003-07-01 15:01 ` [RFC 2/3] dm: avoid event race Joe Thornber
2003-07-01 15:02 ` [RFC 3/3] dm: v4 ioctl interface Joe Thornber
2003-07-01 20:05   ` Kevin Corry
2003-07-02  8:59     ` Joe Thornber
2003-07-02 10:59       ` [dm-devel] " Joe Thornber
2003-07-02 10:59       ` Joe Thornber
2003-07-02 10:59       ` Joe Thornber
2003-07-02 11:00       ` Joe Thornber [this message]
2003-07-02 11:00       ` Joe Thornber
2003-07-02 14:17         ` Kevin Corry
2003-07-02 14:15       ` Kevin Corry
2003-07-06  0:39 ` [dm-devel] [RFC] device-mapper v4 ioctl interface implementation Alasdair G Kergon
2003-07-02 15:23 [dm-devel] Re: [RFC 3/3] dm: v4 ioctl interface Steve Dobbelstein
2003-07-02 15:40 ` Joe Thornber

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=20030702110016.GD6243@fib011235813.fsnet.co.uk \
    --to=thornber@sistina.com \
    --cc=dm-devel@sistina.com \
    --cc=kevcorry@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®