This backport is only needed for kernel < 3.1. Backporting drain_workqueue() is too hard so we just flush the workqueue which should work in most cases. This could still cause problems in some situation. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/workqueue.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/backport-include/linux/workqueue.h b/backport/backport-include/linux/workqueue.h index ec5c230..078ed59 100644 --- a/backport/backport-include/linux/workqueue.h +++ b/backport/backport-include/linux/workqueue.h @@ -60,4 +60,8 @@ void backport_destroy_workqueue(struct workqueue_struct *wq); #define system_freezable_power_efficient_wq system_freezable_wq #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0) +#define drain_workqueue(wq) flush_workqueue(wq) +#endif + #endif /* __BACKPORT_LINUX_WORKQUEUE_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html