RHEL 5 / CentOS 5 bug fix: the argument of flush_workqueue() is a workqueue

pointer, not a struct work pointer.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-04-04 11:55:37 +00:00
parent fb9fec14f3
commit 38575b3d34
+1 -1
View File
@@ -3289,7 +3289,7 @@ static void srpt_remove_one(struct ib_device *device)
* kernels do not have a facility to cancel scheduled work, so
* wait until the scheduled work finished.
*/
flush_workqueue(&sdev->port[i].work);
flush_scheduled_work();
#endif
ib_destroy_cm_id(sdev->cm_id);