From: Matthew Wilcox Date: Sat, 9 Feb 2019 04:40:34 +0000 (-0500) Subject: ucma: Check the XArrays are empty at exit X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d07addf7f24e26bdc91d5697a73e37e71c420a5f;p=users%2Fwilly%2Fxarray.git ucma: Check the XArrays are empty at exit This is a debugging aid which was agreed to but missed during the merge. Signed-off-by: Matthew Wilcox (Oracle) --- diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index 0274e9b704be5..6a88df767c083 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c @@ -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);