From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/infiniband/core/mad_rmpp.c

Change-Id: Ib90113e87affa04b1817e47b209f2e1cc10c5f9f
---
 drivers/infiniband/core/mad_rmpp.c | 5 +++++
 1 file changed, 5 insertions(+)

--- a/drivers/infiniband/core/mad_rmpp.c
+++ b/drivers/infiniband/core/mad_rmpp.c
@@ -91,8 +91,13 @@ void ib_cancel_rmpp_recvs(struct ib_mad_
 
 	spin_lock_irqsave(&agent->lock, flags);
 	list_for_each_entry(rmpp_recv, &agent->rmpp_list, list) {
+#ifdef HAVE___CANCEL_DELAYED_WORK
+		__cancel_delayed_work(&rmpp_recv->timeout_work);
+		__cancel_delayed_work(&rmpp_recv->cleanup_work);
+#else
 		cancel_delayed_work(&rmpp_recv->timeout_work);
 		cancel_delayed_work(&rmpp_recv->cleanup_work);
+#endif
 	}
 	spin_unlock_irqrestore(&agent->lock, flags);
 
