From: Oleg Nesterov Date: Mon, 21 May 2007 20:51:29 +0000 (-0400) Subject: [PATCH] make freezeable workqueues singlethread X-Git-Tag: v2.6.21.5~46 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=aa2112f41c593ea73d7b99ecaa8d4cb60fe37404;p=unionfs-2.6.39.y.git [PATCH] make freezeable workqueues singlethread It is a known fact that freezeable multithreaded workqueues doesn't like CPU_DEAD. We keep them only for the incoming CPU-hotplug rework. Sadly, we can't just kill create_freezeable_workqueue() right now, make them singlethread. Signed-off-by: Oleg Nesterov Cc: "Rafael J. Wysocki" Cc: Gautham R Shenoy Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 2a7b38d8701..1a76bda6563 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -162,7 +162,7 @@ extern struct workqueue_struct *__create_workqueue(const char *name, int singlethread, int freezeable); #define create_workqueue(name) __create_workqueue((name), 0, 0) -#define create_freezeable_workqueue(name) __create_workqueue((name), 0, 1) +#define create_freezeable_workqueue(name) __create_workqueue((name), 1, 1) #define create_singlethread_workqueue(name) __create_workqueue((name), 1, 0) extern void destroy_workqueue(struct workqueue_struct *wq);