|
@@ -2071,8 +2071,10 @@ static int __init bcache_init(void)
|
|
closure_debug_init();
|
|
closure_debug_init();
|
|
|
|
|
|
bcache_major = register_blkdev(0, "bcache");
|
|
bcache_major = register_blkdev(0, "bcache");
|
|
- if (bcache_major < 0)
|
|
|
|
|
|
+ if (bcache_major < 0) {
|
|
|
|
+ unregister_reboot_notifier(&reboot);
|
|
return bcache_major;
|
|
return bcache_major;
|
|
|
|
+ }
|
|
|
|
|
|
if (!(bcache_wq = create_workqueue("bcache")) ||
|
|
if (!(bcache_wq = create_workqueue("bcache")) ||
|
|
!(bcache_kobj = kobject_create_and_add("bcache", fs_kobj)) ||
|
|
!(bcache_kobj = kobject_create_and_add("bcache", fs_kobj)) ||
|