Re: [dm-devel] Re: [RFC 3/3] dm: v4 ioctl interface
Joe Thornber (thornber@sistina.com)
Wed, 2 Jul 2003 12:00:16 +0100
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/