summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Nesterov2007-05-17 07:11:11 +0200
committerLinus Torvalds2007-05-17 14:23:05 +0200
commite3dfd2964ea86ae65f511b10d62ea54d46db3708 (patch)
treecfa7cb8b22c6e5d93c3536c6d542e14e4f9a9bf0
parentRefine SCREEN_INFO sanity check for vgacon initialization (diff)
downloadkernel-qcow2-linux-e3dfd2964ea86ae65f511b10d62ea54d46db3708.tar.gz
kernel-qcow2-linux-e3dfd2964ea86ae65f511b10d62ea54d46db3708.tar.xz
kernel-qcow2-linux-e3dfd2964ea86ae65f511b10d62ea54d46db3708.zip
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 <oleg@tv-sign.ru> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Gautham R Shenoy <ego@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/workqueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index d555f31c0746..7eae8665ff59 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -122,7 +122,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);