[PATCH 0/9 V3] workqueue: fix and cleanup hotplug/rebind_workers()

From: Lai Jiangshan
Date: Wed Aug 29 2012 - 12:51:04 EST


Patch 1~4 fix possible bugs.

Patch 1 fix possible double-write bug
Patch 2,5,7 makes the waiting logic more clear
Patch 3,4 fix bugs from manage VS hotplug
Patch 7,8,9 explicit logic to wait in busy-work-rebind and make rebind_workers()
single pass.

Lai Jiangshan (9):
workqueue: ensure the wq_worker_sleeping() see the right flags
workqueue: fix deadlock in rebind_workers()
workqueue: add POOL_MANAGING_WORKERS
workqueue: add non_manager_role_manager_mutex_unlock()
workqueue: move rebind_hold to idle_rebind
workqueue: simple clear WORKER_REBIND
workqueue: explicit way to wait for idles workers to finish
workqueue: single pass rebind_workers
workqueue: merge the role of rebind_hold to idle_done

kernel/workqueue.c | 151 +++++++++++++++++++++++++++++++++-------------------
1 files changed, 96 insertions(+), 55 deletions(-)

--
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/