From: Oleg Nesterov Date: Mon, 21 May 2007 20:51:29 +0000 (-0400) Subject: [PATCH] make freezeable workqueues singlethread X-Git-Tag: v2.6.20.16~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce9eb635d4de5404582046329bc7e74c2a0546ae;p=thirdparty%2Fkernel%2Fstable.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 2a7b38d870186..1a76bda6563f9 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);