RHEL 5 / CentOS 5 bug fix: the argument of flush_workqueue() is a workqueue
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 4 Apr 2010 11:55:37 +0000 (11:55 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 4 Apr 2010 11:55:37 +0000 (11:55 +0000)
pointer, not a struct work pointer.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1581 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index 1810f28..1e30322 100644 (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);