[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] Re: [RFC 3/3] dm: v4 ioctl interface



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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]