|
@@ -410,13 +410,14 @@ int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old)
|
|
BUG();
|
|
BUG();
|
|
}
|
|
}
|
|
|
|
|
|
- /* Stop new requests to arrive */
|
|
|
|
- del_gendisk(old->disk);
|
|
|
|
-
|
|
|
|
if (old->disk_attributes)
|
|
if (old->disk_attributes)
|
|
sysfs_remove_group(&disk_to_dev(old->disk)->kobj,
|
|
sysfs_remove_group(&disk_to_dev(old->disk)->kobj,
|
|
old->disk_attributes);
|
|
old->disk_attributes);
|
|
|
|
|
|
|
|
+ /* Stop new requests to arrive */
|
|
|
|
+ del_gendisk(old->disk);
|
|
|
|
+
|
|
|
|
+
|
|
/* Stop the thread */
|
|
/* Stop the thread */
|
|
kthread_stop(old->thread);
|
|
kthread_stop(old->thread);
|
|
|
|
|