The following was found by code review:
uverbs_mem.c does schedule_work, so we must flush scheduled
work before unloading the module.

---

Flush work scheduled from uverbs_mem.c

Signed-off-by: Michael S. Tsirkin <[EMAIL PROTECTED]>

Index: openib/drivers/infiniband/core/uverbs_main.c
===================================================================
--- openib/drivers/infiniband/core/uverbs_main.c        (revision 4985)
+++ openib/drivers/infiniband/core/uverbs_main.c        (working copy)
@@ -896,6 +896,7 @@ out:
 
 static void __exit ib_uverbs_cleanup(void)
 {
+       flush_scheduled_work();
        ib_unregister_client(&uverbs_client);
        mntput(uverbs_event_mnt);
        unregister_filesystem(&uverbs_event_fs);

-- 
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to