We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38d432f commit cbeafa7Copy full SHA for cbeafa7
drivers/block/nbd.c
@@ -2478,6 +2478,12 @@ static void __exit nbd_cleanup(void)
2478
struct nbd_device *nbd;
2479
LIST_HEAD(del_list);
2480
2481
+ /*
2482
+ * Unregister netlink interface prior to waiting
2483
+ * for the completion of netlink commands.
2484
+ */
2485
+ genl_unregister_family(&nbd_genl_family);
2486
+
2487
nbd_dbg_close();
2488
2489
mutex_lock(&nbd_index_mutex);
@@ -2496,7 +2502,6 @@ static void __exit nbd_cleanup(void)
2496
2502
destroy_workqueue(nbd_del_wq);
2497
2503
2498
2504
idr_destroy(&nbd_index_idr);
2499
- genl_unregister_family(&nbd_genl_family);
2500
2505
unregister_blkdev(NBD_MAJOR, "nbd");
2501
2506
}
2507
0 commit comments