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 40f567b commit 06c4da8Copy full SHA for 06c4da8
drivers/block/nbd.c
@@ -2528,6 +2528,12 @@ static void __exit nbd_cleanup(void)
2528
struct nbd_device *nbd;
2529
LIST_HEAD(del_list);
2530
2531
+ /*
2532
+ * Unregister netlink interface prior to waiting
2533
+ * for the completion of netlink commands.
2534
+ */
2535
+ genl_unregister_family(&nbd_genl_family);
2536
+
2537
nbd_dbg_close();
2538
2539
mutex_lock(&nbd_index_mutex);
@@ -2546,7 +2552,6 @@ static void __exit nbd_cleanup(void)
2546
2552
destroy_workqueue(nbd_del_wq);
2547
2553
2548
2554
idr_destroy(&nbd_index_idr);
2549
- genl_unregister_family(&nbd_genl_family);
2550
2555
unregister_blkdev(NBD_MAJOR, "nbd");
2551
2556
}
2557
0 commit comments