From: Andrew Morton Date: Thu, 7 May 2009 19:36:53 +0000 (-0700) Subject: sysfs: file.c: use create_singlethread_workqueue() X-Git-Tag: v2.6.30-rc8~19^2~1 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=086a377edc969aea6c761176a7e4ff68f264d6fe;p=net-next-2.6.git sysfs: file.c: use create_singlethread_workqueue() We don't need a kernel thread per CPU for this application. Acked-by: Alex Chiang Cc: Lai Jiangshan Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index b1606e07b7a..561a9c050ce 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -723,7 +723,7 @@ int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *), mutex_unlock(&sysfs_workq_mutex); if (sysfs_workqueue == NULL) { - sysfs_workqueue = create_workqueue("sysfsd"); + sysfs_workqueue = create_singlethread_workqueue("sysfsd"); if (sysfs_workqueue == NULL) { module_put(owner); return -ENOMEM;