]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ucma: Check the XArrays are empty at exit
authorMatthew Wilcox <willy@infradead.org>
Sat, 9 Feb 2019 04:40:34 +0000 (23:40 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 8 Aug 2019 03:34:59 +0000 (23:34 -0400)
This is a debugging aid which was agreed to but missed during the merge.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
drivers/infiniband/core/ucma.c

index 0274e9b704be5930cedb52b2f9d036edec69b6bb..6a88df767c0833798ffc912fe23060b88143ed29 100644 (file)
@@ -1852,6 +1852,8 @@ static void __exit ucma_cleanup(void)
        unregister_net_sysctl_table(ucma_ctl_table_hdr);
        device_remove_file(ucma_misc.this_device, &dev_attr_abi_version);
        misc_deregister(&ucma_misc);
+       BUG_ON(!xa_empty(&ctx_table));
+       BUG_ON(!xa_empty(&multicast_table));
 }
 
 module_init(ucma_init);