[openib-general] [PATCH] uverbs: flush scheduled_work
Michael S. Tsirkin
mst at mellanox.co.il
Mon Jan 16 07:40:01 PST 2006
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 <mst at mellanox.co.il>
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
More information about the general
mailing list