]> git.neil.brown.name Git - history.git/commit
[PATCH] Hotplug CPUs: Workqueue Changes
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 19 Mar 2004 00:03:54 +0000 (16:03 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 19 Mar 2004 00:03:54 +0000 (16:03 -0800)
commit6bcaa29dc02edc04b6f2baa4c85ace1c2c69871a
tree0e2fecc2c867f889537449f73129b6615b9a5e27
parent010b27dc120ac4f57e22998854ef4373c174b171
[PATCH] Hotplug CPUs: Workqueue Changes

Workqueues need to bring up/destroy the per-cpu thread on cpu up/down.

1) Add a global list of workqueues, and keep the name in the structure
   (to name the newly created thread).

2) Remove BUG_ON in run_workqueue, since thread is dragged off CPU when
   it goes down.

3) Lock out cpu up/down in flush_workqueue, create_workqueue and
   destroy_workqueue.

4) Add notifier to add/destroy workqueue threads, and take over work.
kernel/workqueue.c