[PATCH 07/12] workqueue: remove WORKER_STARTED
From: Lai Jiangshan
Date: Wed Sep 26 2012 - 13:20:23 EST
All newly created worker will enter idle soon,
WORKER_STARTED is not used any more, remove it.
Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>
---
kernel/workqueue.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index fe3b1d3..d37f446 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -69,7 +69,6 @@ enum {
POOL_MANAGING_WORKERS = 1 << 1, /* managing workers */
/* worker flags */
- WORKER_STARTED = 1 << 0, /* started */
WORKER_DIE = 1 << 1, /* die die die */
WORKER_IDLE = 1 << 2, /* is idle */
WORKER_PREP = 1 << 3, /* preparing to run works */
@@ -1838,7 +1837,6 @@ fail:
*/
static void start_worker(struct worker *worker)
{
- worker->flags |= WORKER_STARTED;
worker->flags |= WORKER_PREP;
worker->pool->nr_workers++;
worker_enter_idle(worker);
@@ -1863,7 +1861,6 @@ static void destroy_worker(struct worker *worker)
/* sanity check frenzy */
BUG_ON(worker->current_work);
BUG_ON(!list_empty(&worker->scheduled));
- BUG_ON(!(worker->flags & WORKER_STARTED));
BUG_ON(!(worker->flags & WORKER_IDLE));
BUG_ON(list_empty(&worker->entry));
--
1.7.7.6
--
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/