IB/sa_query: Flush scheduled work before unloading module
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 17 Jan 2006 17:53:51 +0000 (09:53 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 17 Jan 2006 17:53:51 +0000 (09:53 -0800)
commit0f47ae0b3ec35dc5f4723f2e0ad0f6f3f55e9bcd
tree2a77f27999f10bb4b356b53a9256088fc3bfb213
parentcc76e33ec98ee2acab2d10828d31588d1b10f274
IB/sa_query: Flush scheduled work before unloading module

sa_query schedules work on IB asynchronous events.  After
unregistering the async event handler, make sure that this work has
completed before releasing the IB device (and possibly allowing the
sa_query module text to go away).

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/sa_query.c