From 38575b3d345f64b5e4aeafb9aab431711a7a54e7 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Apr 2010 11:55:37 +0000 Subject: [PATCH] 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 --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 1810f28fd..1e303224b 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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);